The Mob Kill Counter tracks kills on a per-world basis rather than merging your lifetime stats across the entire game. This means your hardcore or 100 days challenge kills will never mix with your casual Survival worlds.
Managing Per-World Scoreboards
Because the counter is stored inside an individual world's datapacks folder, it only runs in the saves where you place the .zip file.
1. If you have three different Survival worlds and want to keep score in two of them, open the world folder for each of those two saves.
2. Locate the datapacks folder inside the first world and drop a copy of the .zip file inside.
3. Repeat the process for the second world using another copy of the .zip file.
4. Leave the third world's datapacks folder empty if you want a clean HUD without a counter in that save.
How the Hotbar Display Behaves
When you load into any enabled world, the number shown right above your hotbar reflects only the mobs you have killed in that current world. Switching to another save will automatically show that specific world's separate kill count.