@Override
        public int read(byte[] buffer) throws IOException {
            int count = mStream.read(buffer);
            mCount += count;
            return count;
        }
Proxy that counts the number of bytes read from an InputStream.
common/src/test/java/org/conscrypt/java/security/cert/CertificateFactoryTest.java