Question: how many valence electrons does a neutral atom of chlorine have?
Answer: That gives a total of 7 electrons, so neutral chlorine atoms have 7 valence electrons. The 10 remaining electrons, from the first and second shells, are core electrons.