Retrieving event counts including discarded issues

We use Sentry’s Retrieve Event Counts for an Organization API endpoint to pull daily data for reports. It looks like we’re seeing discarded event stats in this list as well. Is there a way to strip these out, or are these included by design? We’d love to filter this down to unexpected/unknown issues, if possible.

For example, if we have 100 unresolved issues and 40k discarded issues (that’s another story!), our daily count will show 40,100 issues instead of 100 like we’d hope.

https://docs.sentry.io/api/organizations/get-organization-stats/

Thanks!