Added a scanner that checks how many particles there are in the input file

added ifstatement for if the inputfilename was set
Added full support for multiple particles in input file