count lines fix