docs: public static <T> int numPresent(Iterable<? extends Optional<? extends T>> optionals) {
      int numPresent = 0;
      for (final Optional<?> optional : optionals) {
        if (optional.isPresent()) {
          ++numPresent;
        }
      }
      return numPresent;
    }