Creates a proxy stream that counts the number of bytes written.
The stream to forward the written data to
Optional total write size limit after which an exception is thrown
See Implementation
Creates a proxy stream that counts the number of bytes written.