How is this a bug? You are counting the number of lines, the line marker takes up a line.