Pgsql Countif Between Two Values