[Archive] Number of particles in a simulation

Message by julien:
How can one find the total number of particles (ions and, where appropriate, electrons) used in a simulation? This is not essential in order to do a simulation, but it’s the sort of thing that I find interesting to know. Is there a simple way to get that number? An average would be good. A plot of N as a function of time (for all species treated kinetically) would be great.