From Garry's Mod
This function or feature is only available in the Sandbox gamemode and its derivatives.
Gets total count of entities of same class.
Entity type to get count of.
If specified, it will reduce the counter by this value. Works only serverside.