import collections


def frequency(list_):
    """
    Finds the occurances of elements in a list.
    Works with numbers not consisting of numbers as well
    """
    occurances = collections.Counter(list_)
    return occurances