How can i calculate the number of choices selected?