Collect line statistics properly.