how to count how many enemies are on the map ?

how to count how many enemies are on the map ?

Increment an int variable by one every time you create an enemy. Decrement it by one every time you remove one.

Just use a static for your “enemy class” and count it up…