The user can count the number of particles which are in sphere or box at every animation frame.
Figure 1 Sensor icon in the Post-Process group in the Embedded SPI tab
Refer to it for the External SPI.