i dont know why you trying to check m_zombieClass on bots, because you wrote that you want to count all.
would not it be easier to do like this ?
PHP Code:
int IsPanicMobsAlive()
{
int count = 0;
for (int i = 1; i <= MaxClients; i++)
if (IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && IsFakeClient(i) && GetClientTeam(i) == 3) count++;
return count;
}