node.js module to keep track of how many bytes have been written to a stream