Counting valence electrons for main group elements

Counting valence electrons for main group elements