collecting line count