Sql Postgres Count With Different Condition On The Same Query Stack