code: public static <T> Map<T, Long> countBy(Collection<T> collection) {
          return countBy(collection.stream());
      }
docs: Count by map.
  
  @param <T>        the type parameter
  @param collection the collection
  @return the map