Oxidation numbers and redox reactions

Oxidation numbers track electrons by assigning shared ones to the more electronegative atom, so a reaction in which some atom's number rises (oxidation) and another's falls (reduction) is a redox reaction, and the electrons lost must equal the electrons gained.

From General Chemistry.