ParticleCounter: remonder to use proper Iterator to allow modification
ParticleCounter: bring array creation out of the inner loop
ParticleCounter: further reduce array instantiation