There are two of these atoms in a water molecule?

Well, the formula is ${H}_{2} O$, so you should tell us.
How many oxygen atoms in hydrogen peroxide, $H O - O H$?