Postgres Select Count Statement Python Tutorial