Do partitioning based on counters.
Do partitioning based on counters.