Added a max count for spawning monsters