Add missing type converter for counters
Merge branch 'fix_counters' into v1.0.x