techkenb
add another condition to the every random seconds that says sprite.count Less Than MaxSprites
(where MaxSprites is the number you want to limit at)
This will then only create a new instance of Sprite if there is less than the maximum number you want to allow.
You don't need the Sprite.count greater than 2...