Increase counter to 10 errors before sending an email