How to limit the number of times that an option can be selected?