change io. to output.
add code for nreads and count.tbs