How can I create a section for number in party?

I'd like to create an option that allows clients to select how many people will be in their reservation, this way I cannot get overbooked.

What code do I need to require a "number in party" requirement upon booking?

This would work in step with the capacity function in Services as I have each service set to accept no more than 40 people per service.