@Override
  public synchronized void mark(int readlimit) {
    in.mark(readlimit);
    mark = count;
    // it's okay to mark even if mark isn't supported, as reset won't work
  }
Returns the number of bytes read.
micrometer/src/main/java/feign/micrometer/CountingInputStream.java