From your back-office, go to event website, and click on settings (top right corner).

In the pop up window, go to the tab "registration".

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.