How many valence electrons do atoms in Group 1 2 15 16 and 17 have?

Group 1 has 1, group 2 has 2, group 15 has 5, group 16 has 6 and group 17 has 7 valence electrons.