Limit number of members?

Is there a way to cap the number of members?