Compute the probability of x successes