Count
func (input *Channel[T]) Count() <-chan int64
Count
counts input values and sends the final count to the output channel.
The final count is sent to the return channel when all input values have been processed, or the pipeline is canceled.
Example
output := input.Count()