class CountingInput {

  public static BoundedCountingInput forSubrange(long startIndex, long endIndex) {
    checkArgument(endIndex >= startIndex,
        "endIndex (%s) must be greater than or equal to startIndex (%s)",
        endIndex, startIndex);
    return new BoundedCountingInput(startIndex, endIndex);
  }

}