numerrors
The numerrors function returns an integer which contains the current count of errors in the translation report (the count at the time the rule is executed). This function does not require any parameters.
Syntax
Use this syntax:
integer error_count;
error_count = numerrors();