Fix line counting

Line number in error messages were of by one. I fixed it by making enumerate()
to start counting from 1, not from 0 (default value).