Count line number from one

Ref #365