Limit checkbox choices

I have a long list of checkboxes where people can choose from. Is it possible to limit the amount of choices that can be made?

Replies are visible only to logged in members with an active subscription.