@Override
  public void write(byte[] b, int off, int len) throws IOException {
    out.write(b, off, len);
    mCount += len;
  }
Returns the number of bytes written.
fbcore/src/main/java/com/facebook/common/internal/CountingOutputStream.java