Implemented a line counter to make fixing syntax errors slightly easier

It'll simply print the line number where it failed to parse when it fails to parse.