= core: minor refactor in MinMaxCounter