Converting from histograms to counters.