Dear Student
The number of atoms in a molecule depends on the molecule.
Let us say, hydrogen molecule is H2.
Two atoms of hydrogen make up a molecule.
Water molecule, H2O.
Two atoms of hydrogen and one atom of oxygen make up a molecule. There are total three atoms in a water molecule.
Regards