ScriptErrorCount
This error variable returns the total number of statements that have caused errors during the current script execution. This variable is always reset to 0 at the start of script execution.
Syntax:
ScriptErrorCount