Typescript Count Unique Values Pandas Dataframe Index