Its really never a good idea to have sprites spawning without something in place to either destroy them, or choke the total count.
So, yeah the thing your looking for as far as that goes is .count, sprite.count, etc.
As in system compare sprite.count is less than n amount, do stuff.