An ACS library for ZDoom-based ports
int ClientCount()
Returns the amount of clients present on the server.
It works by looping through all players and counting for how many of them PlayerIsConnected returns true.