Returns a histogram of your data.

    :param data: The data to histogram
    :type data: list[object]
    :return: The histogram
    :rtype: dict[object, int]

def histogram(data):
    """Returns a histogram of your data.

    :param data: The data to histogram
    :type data: list[object]
    :return: The histogram
    :rtype: dict[object, int]
    """
    ret = {}
    for datum in data:
        if datum in ret:
            ret[datum] += 1
        else:
            ret[datum] = 1
    return ret