Minecraft wiki entry for Development_versions, associated text: Added a per entity type limit that only affects creepers and ghasts so they won't spawn if there's already a certain number in a 5×5 chunk area.
Tweaked entity counting to improve performance.