Notification count with DND, skip hidden from counter

I Daily use the DND function on the android 14, that hides a lot of notifications.
If I use the formula to count notifications in kwgt it return all, even the one not visible due to DND.
Is there a way to get only visible notifications if hidden by DND?

Maybe you can share the formula that you’re using so others can check?