I am trying to count number of occurrence for every item and save it in default dict based on its location in the list for example : if pass this list: