Postgres Get Count Of Unique Values Pandasama