Return the number of bytes read in the example read_buf implementation.