How to limit the number of registrations?