compatibility: Counter is python >=2.7
replace or compat module? I haven't checked yet