Added total line counter