Limiting leads to owner

Limiting leads to owner

How do I restrict the number of leads to each lead owner?

Once the limit is reached, any new lead is to be assigned to another owner or admin.