Python Dataframe Count Values In R