move stream completion counter into RawBatchBuffer