How to get the instant number of particles?
I am doing a simulation of sandpile formation. I am wodering how can I get the instant number of particles in the sandpile since I use "lost ignore" to delete the paticles that gose to far from the pile.
Actually, I want to use this number in a judgement condition of a loop to control the max number I should pour on the sandpile.