Match the number of read from the subprocess.