Typescript Count Unique Values Pandas Dataframe From Dictionary