d: create getter for the number of errors from the parser