Determining number of particles (i)