Probability of getting a certain number of occurrences