Count Using Case Sql Function To Get Current