Creates a sink counting the total number of items in the stream.
The type of items in the stream
A sink that counts all items in the stream
await items([1, 2, 3, 4, 5])(count()); // 5await items([])(count()); // 0 Copy
await items([1, 2, 3, 4, 5])(count()); // 5await items([])(count()); // 0
Creates a sink counting the total number of items in the stream.