Fixed number of recurring bookings

Is there a way to limit the number of slots booked by a customer when booking online? Instead of having an end-date, can repeat sessions be booked for an admin defined number of sessions, depending on what the user selects?