hamling function

Approximating effective-counts as proposed by Hamling