def correlate(class_, iterable):
        counter = class_()
        for elm in iterable:
            counter(elm)
        return counter
Build a Counter from an iterable in one step.
dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/containers.py/Counter.correlate