LSL feature request. The described function does not exist. This article is a feature request.
Returns the number of avatars currently online in the region identified.
void llGetRegionPopulation( string region name );
Forced delay: 0.1 seconds. Energy: 10.0.
Useful in HUDS for instance to determine possible lag or region full errors before teleporting (in conjunction with a better teleport API).
A similar function has been introduced...see https://wiki.secondlife.com/wiki/LlGetRegionAgentCount