Question: how many total valence electrons are there?
Answer: As a general rule, a main group element (except hydrogen or helium) tends to react to form a closed shell, corresponding to the electron configuration s2p6. This tendency is called the octet rule, because each bonded atom has eight valence electrons including shared electrons.