Construct a program, in Python code, to calculate the histogram of the elements in a list.
example_list = [1,2,2,2,3,4,5,5,5,5,5]
def histogram_elements(example_list):
    histogram = {}
    for i in example_list:
        histogram[i] = example_list.count(i)
    return histogram