Limit number of choices in a multiple answer box

Limit number of choices in a multiple answer box

I want only three of the buttons to be selected at the same time out of multiple answers. How  do I do that?