pick all by comparison expression should solve this
condition or expression should look like the following
pick all by comparison
sprite
sprite.animationframe = 1
action
text1 set text to pickedcount
=========================
pick all by comparison
sprite
sprite.animationframe = 2
action
text2 set text to pickedcount.