[TD-9089] Providing indifferent support for hashes with counters