Postgres Select Count Into Variable