now reads in number of each atom