libknc: add knc_avail() to report the number of processed bytes.