# you can wrap a writer with std.io.countingWriter which will keep a count while writing to an underlying writer