Counting the number of options