def _unique_item_counts(iterable):
    """ Build a dictionary giving the count of each unique item in a sequence.

        :param iterable: sequence to obtain counts for
        :type iterable: iterable object
        :rtype: dict[obj: int]
    """

    items = tuple(iterable)

    return {item: items.count(item) for item in sorted(set(items))}