From your back-office, go to the Event website > Registration settings


Enable the "Set registration limit" feature.


You are now able to limit the number of confirmed contacts allowed to register. You can also set a message to be displayed when the quota is reached.