added some sanity checks to show how many lines were processed.