Count Using Case Sql Syntax Order