Set Branch to true when x out of y conditions are met

Hey all!

I have 10 booleans that I check with a Branch node.
I need the Branch to execute as True when 4 out of 10 booleans are true. It does not matter which booleans are true, as long as there are 4.
When using the AND node, I can only connect specific booleans, which is not what I’m looking for.

Anyone know how to do this?