effectiveSampleSize function

Compute the effective sample size of a match.