import { Observer } from "./observer" ; export function count < T = any > ( ) { let count ; return { observe : ( value , idx ) => { if ( idx === 0 ) { count = 0 ; } ++ count ; } , peek : ( ) => count } ; }