Oracle Sql Count Distinct Conditional