import collections


def frequency(input_list):
    """
    Finds the occurances of elements in a list.
    Works with numbers not consisting of numbers as well.

    :param input_list: list or tuple

    >>> frequency([1, 2, 2, 3, 3, 3, 4, 4, 4, 4])
    Counter({4: 4, 3: 3, 2: 2, 1: 1})
    """
    return collections.Counter(input_list)