Postgresql Count Distinct Values In Pandas