node module: count things on an observable stack