It counts from one.
In reply to Re^4: Question on Reading a file inside while and counting no.of lines by Jim in thread Question on Reading a file inside while and counting no.of lines by vyeddula