forCount operation on streams