Pai sapo?
Btw, the code seems ok. It should work perfectly if you use default amxmodx. Since you running rehlds and other stuff i have no idea what kind of impact it can have on plugin’s performance.
Edit:
Try with get_players, flags ae, will instantly give you the count per team. Maybe this way it works