The function is called on a list-item and creates and returns a dictionary that calculates the occurrence of every item in the list