Turing interview question

Count the frequency of elements using python