How to make enemy spawning limit

i need a limit to the enemy spawning in my game because the enemy will just keep spawning until my computer crashes.here is my game

1 Like

have a number add up and decrease when an enemy is spawned/killed and have a filter going into the spawn through the fail.

can u show me a picture?