code: func (w *countingWriter) Write(p []byte) (n int, err error) {
  	n, err = w.w.Write(p)
  	w.count += uint(n)
  	return n, err
  }
docs: // Write increments the byte counter by the number of bytes written.
  // Implements the WriteCloser interface.