how to calculate number of atoms in a molecule