default long count(){
  try (Stream<E> s=stream()){
    return s.count();
  }
 }

default long count ( ) { try ( Stream < E > s = stream ( ) ) { return s . count ( ) ; } }
count the elements . this will close the iterator .
