find the number of atoms in a molecule