Counting the total outcomes