findcount 

$findcount(search string)

This functions works exactly like the $find() function, only it returns a count instead of a list.

Example:
cmd /say_stat * There are $findcount($streq($(pclass),Medic)) Medic's in the game.