Limit number of bookings

Is there a way to limit the number of appointments that can be booked per day?

Ideally I want my clients to be able to book a time that suits them but limit the number of clients to 3 a day. Once that limit has been met (for that specific day) the bookings calendar shows that day as fully booked.