How to detect when all enemies are dead?

I know there is an on-screen behavior but I need something for only a specific type.

please look at the examples page before asking for help

When the enemies health reaches 0 or when he destroys, make it send a message to a separate object as an enemy counter.

So when you kill 10 enemies, each time they send a message to the counter and when the number equals 10, all enemies in that stage have been killed.


My bad, Last time I checked the page I didn’t see that there. thanks anyway.