# import necessary libraries
import pandas as pd
# define your series
my_series = pd.Series([8, 9, 1, 2, 1, 1, 7, 8, 9, 2,\
10, 7, 2, 1, 8, 8, 3, 10, 7, 3])
# define a counts dictionary,
# loop through the series
# and add counts
counts = {}
for item in my_series:
counts[item] = counts.get(item, 0) + 1
# print result
print(f"Frequency Counts of Items: {counts}")