class CountingInput {

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

}