rwcount

Package rwcount implements a simple counter that wraps an io.Reader or io.Writer. Useful for functions (like binary.Read/Write) which do not return read/write counts.

Go Reference