This will allow you to check if a player is on a coach team, and what coach team they're on.
PHP Code:
int coach_terrorist = 0;
int coach_counterterror = 0;
//m_iCoachingTeam
//return 0 if not on team
//return 2 for Terrorist team
//return 3 for Counter Terror team.
int coachteam = GetEntProp(client, Prop_Send, "m_iCoachingTeam");
//Terrorist team
if(coachteam == CS_TEAM_T) {
coach_terrorist++;
//Counter-terror team
} else if (coachteam == CS_TEAM_CT) {
coach_counterterror++;
}