static <T> Complexity<T> ofNodeCount(final int maxNodeCount) {
		if (maxNodeCount < 1) {
			throw new IllegalArgumentException(
				"Max node count must be greater than zero: " + maxNodeCount
			);
		}

		return p -> count(p, maxNodeCount);
	}
Return a complexity measure which counts the number of nodes of a program.

@see #count(Tree, int)

@param <T> the sample type
@param maxNodeCount the maximal node count. The returned complexity will
       be one of the program node count is greater or equal the given
       {@code count}
@return a program node count complexity measure
@throws IllegalArgumentException if the max node {@code count} is smaller
        than one
jenetics.prog/src/main/java/io/jenetics/prog/regression/Complexity.java