When you press the "confirm hostile extinction" button and there are still hostiles left it'll show text at your cursor.
Obviously counting all the entities has some performance impact, there is currently no caching or sensible limit in place.
Primarily intended for figuring out how many nests a laser has yet to kill, they're not all as easy to spot with human eyes.