Go to Enrollment methods from the course settings, click on the Settings icon by Manual enrollment. There is a place there to limit the number.
Enrolment
Enrolment Limits by Course
This discussion has been locked so you can no longer reply to it.