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