Loop through them and indivudally check, if found, add 1 to counter.
var: counter int() = 0
event: for each sprite
sub:
event: compare animation frame not equal 0
event: sprite is on screen
subs action: add 1 to counter
After the loop, the counter holds number of sprites which are on screen with their current animation frame other then 0