docs: public static int getFlattenedItemsCount(final Object... items) {
  
          return stream(items)
              .map(item -> item.getClass().isArray() ? getFlattenedItemsCount((Object[]) item) : 1)
              .reduce(0, Integer::sum);
      }