If you knew the number of valence electrons in a nonmetal atom, how would you determine the valence of the element?