Compute sum of terms (function F, Comoglio et al.)
compute_sum(counts, n, f_product)
counts
integer vector of counts
n
number of objects
f_product
product of (1-fractions)
fractions
sum of terms in function F