Minor change to correctly calculate the line count.