protected final int resultCount() {
    if (resultCount < 0) {
      throw new SimException("results never set");
    }

    return resultCount;
  }
Gets the count of results. This throws an exception if results were never set. (Explicitly
clearing the results counts as setting them.)

@return {@code >= 0;} the count
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/BaseMachine.java