Counting the number of outcomes in a sample space