Apologies. I think my question was not clear.
For example, I have 20 tickets for sale for a concert and one can buy 1 or 2 tickets, then the form must be closed when the number of registrations together reach those 20 tickets.
I hope this is clearer.
Greetings