I want to make an automation that when triggered causes a counter helper to increase its value (not set, but strictly increase) by the number of Boolean state entities along a given set of entities currently in an off state.
So if I have three Boolean entities, and two are off, and this automation is triggered, the counter helper should increase by two.
How can I achieve this?