Bukkit/CraftBukkit — comment on commit 5db278fce7466bb417aa6180775bb4a5464756d6
File:  line 0
By jrtc27:

Both, I believe, although there might be a limit imposed on the number of entities that can be spawned in an area.