public static <E> long count(Iterable<E> iterable) {
        dbc.precondition(iterable != null, "cannot call count with a null iterable");
        return count(iterable.iterator());
    }
public static < E > long count ( Iterable < E > iterable ) { dbc . precondition ( iterable != null , "cannot call count with a null iterable" ) ; return count ( iterable . iterator ( ) ) ; }
Counts elements contained in the iterable.

@param <E> the iterable element type parameter
@param iterable the iterable to be consumed
@return the size of the iterable