code: public RunList<R> limit(final int n) {
          return limit(new CountingPredicate<R>() {
              public boolean apply(int index, R input) {
                  return index<n;
              }
          });
      }
docs: Return only the most recent builds.
  <em>Warning:</em> this method mutates the original list and then returns it.
  @param n a count
  @return the n most recent builds
  @since 1.507