entity limits?

how would i limit an entity, so people can only spawn 1 or2 entities in total

and how do i limit entities on their own?

[editline]10th February 2011[/editline]

and how can i make it so that people can only have one entity per life?