How to make a weight system?

I assume all the particles share the same weight. Why not just get the number of particles in the container without calculating their weigh per se?