example calculate the number of atoms in metal