How can I limit the maximum number of participants?

The maximum number of participants you can limit with
 
Event-> Edit Registration-> maximum number