If you are talking about the simulation at the first post: then the umber of particles are 200 as default and can be changed from user input.
The pressure was calculated by momentum change per second.
Because there are limited number of particles so that the pressure change over time.
In real case, it will be more than $10^{19}$particles per center meter square.