error count workflow