Fixed the number of first particle error

The problem was that any future instances of the first element were not
included when calculating the number of atoms of the first element. This
was fixed and the program now works as far as I know.