pub fn count_items<'b, S, T, E>(
stream: S,
progress: &Progress,
) -> impl Stream<Item = Result<T, E>> + Send + 'bExpand description
Counts items flowing through an item stream, without touching errors or the outcome.
Used on the encode side, where items exist only upstream of the encoder. This is the one place they are still items rather than bytes.