Added line count feedback to main thread