adding count log
modify RichReader for ability to  check for the last line