How do you determine the number of valence electrons for a given element?