Ignored errors in "number of errors" alert rules

I have set up an alert rule of type “number of errors” that switches the alert to “Critical” if there are more than 7 errors in 15 minutes.

However, that rule also counts ignored errors, firing for example if all the 7 errors where ignored errors.

Is there a way to exclude ignored errors from such rules?