結果 : count case when postgresql