code: public boolean isSet() {
      for (int i = 0; i < counts.length; ++i) {
        if (counts[i] != 0) {
          return true;
        }
      }
      return false;
    }
docs: Returns true if any unit is set.
  @return true if any unit is set