def correlate(class_, iterable):
    """Build a Counter from an iterable in one step.

        This is the same as adding each item individually.
        """
    counter = class_()
    for elm in iterable:
        counter(elm)
    return counter
