Simple say: As electrons are lost, the oxidation number increases, since oxidation is the loss of electrons. Therefore, elements have an oxidation state of 0, Na+ has an oxidation state of 1. Cl- has an oxidation state of -1, since it has in fact GAINED electrons, hence not undergoing oxidation...