Limit number of Enrollments for Course

Hi
How to i limit number of enrollments per course?

Thanks in advance.
Prashant