The number 2 indicates that there are two atoms of hydrogen in a molecule of water. There is also one atom of oxygen but the number one is omitted from a chemical formula.
FAQ #28401
In the chemical formula for water (H2O), what does the number 2 mean?