CLN: remove util.counter, duplicates compat