Oxidation number is the number indicating the number of oxygen atoms present in the compound.
False
In ionic compounds like NaCl, the oxidation number of Na is +1 and that of Cl is −1. This means the oxidation state of Na is +1 and that of Cl is −1 when forming a NaCl molecule.
It has nothing to do with the amount of oxygen present in the compound.