In short
In Java Edition, the debug screen ( F3 ) shows the entity count: the line E: 23/180 means 23 entities in your field of view out of 180 loaded ones. Since Minecraft 1.21.9 this line is off by default. Turn it on with F3 + F6 . On top of that:
F3 + B shows the hitboxes of all entities around you.
/execute if entity @e[type=minecraft:zombie] counts all loaded zombies.
/effect give @e[type=minecraft:zombie,distance=..64] minecraft:glowing 60 makes them glow through walls.
For a whole server with a map and statistics in the browser I built minecraft-entity-view , but only for Minecraft 1.21.8.
What counts as an entity?
Entities are everything in the world that is not a block: mobs and animals, players, dropped items, experience orbs, arrows, boats, minecarts, armor stands and item frames.…