export async function countAsync( iterable: AsyncIterable ): Promise { let count = 0 for await (const _ of iterable) { count++ } return count }