Postgres Get Number Of Rows In Pandas