nums = [1, 2, 3, 2, 1, 3, 2, 4, 5, 4] Write a Python program to count the frequency of each element in a list.
Asked in the round_1 stage. Implement the function below. Return a dictionary whose keys are string representations of the input values and whose values are their occurrence counts.
nums, a list of integers.def count_frequencies(nums):