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