extract.py swith a logarithmic rounding function applied to count