In the latest update 1.21.11, the number of entities around the player is working normally, but the on-screen entity count is always set to 0. This creates an issue for players who speedrun in the latest versions, as well as for those who rely on this feature
On-screen entity count is not working