How many valence electrons does a chlorine atom have if its electron configuration is 1s2 2s2 2p6 3s2 3p5?