Calculating the Number of Atoms in a Molecule