What is the oxidation number of an element?

A. The number of atoms of an element in a formula

B. The charge an element would have if it lost or gained electrons

C. The number of valence electrons an element has

D. The group number for the element