adding an error count