Applied Spigot's patch 0022-Only-count-entities-in-chunks-being-processed.