Renamed getNumberOfAtoms to numberOfAtoms