Add resetting to errorsCount counter