Fixed calculation of use_count

Patch by Johan