public static <T> T getConfiguration(Class<T> type) {
    return RunContext.get().getConfiguration(type);
  }
Returns the number of features contained in the given specification.
Because Spock allows for the dynamic creation of new features at
specification run time, this number is only an estimate.
spock-core/src/main/java/org/spockframework/runtime/SpecUtil.java