The routine gEnqNumberOfErrors() returns the number of errors and warnings generated since the last call to gSetErrorTrap(1). If error trapping is disabled, count is returned set to -1. A call to gEnqLastErrors() will return the actual error and warning numbers generated (up to a maximum of 12).