Counting all possible outcomes