Question: how many valence electrons do atoms of hydrogen have?
Answer: Each H atom (group 1) has 1 valence electron, and the O atom (group 16) has 6 valence electrons, for a total of 8 valence electrons.