Here's what I did, which appears to be working. Not as clean as I had hoped for:
[{"id":"d4d11aac.7a6398","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"c87456f8.10afa8","type":"api-current-state","z":"d4d11aac.7a6398","name":"Main Windows","server":"2ee084e7.d905bc","version":1,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"gte","override_topic":false,"entity_id":"sensor.window_count_main","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":360,"y":220,"wires":[["e586fbba.4897c8"]]},{"id":"794fa680.3b20c8","type":"trigger","z":"d4d11aac.7a6398","name":"","op1":"Door Opened","op2":"open","op1type":"str","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":530,"y":280,"wires":[["3456d5f2.00a88a"]]},{"id":"b05df403.1c5a18","type":"trigger","z":"d4d11aac.7a6398","name":"","op1":"Door Opened","op2":"open","op1type":"str","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":530,"y":760,"wires":[["e5a10cc9.2cc6a"]]},{"id":"f15b5a70.a17df8","type":"trigger","z":"d4d11aac.7a6398","name":"","op1":"Door Opened","op2":"open","op1type":"str","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":530,"y":400,"wires":[["87d4e2ac.bed1c"]]},{"id":"79b26671.f01f08","type":"trigger","z":"d4d11aac.7a6398","name":"","op1":"Door Opened","op2":"open","op1type":"str","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":530,"y":640,"wires":[["7837bc35.0c8ed4"]]},{"id":"b57eaa7b.7a2578","type":"trigger","z":"d4d11aac.7a6398","name":"","op1":"Door Opened","op2":"open","op1type":"str","op2type":"str","duration":"5","extend":false,"overrideDelay":false,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":530,"y":520,"wires":[["62ef7b3a.b5c514"]]},{"id":"3456d5f2.00a88a","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"var opencount = opencount;\nvar runonce = runonce;\nif (runonce == \"null\")\n{\n opencount = 0;\n msg.payload = (opencount);\n runonce = 1;\n}\nif (msg.payload == 'open')\n{\n opencount = 1;\n}\nelse\n{\n opencount = 0;\n}\nmsg.topic = 'den';\nmsg.payload = (opencount);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":340,"wires":[["5fcc828a.c8c55c"]]},{"id":"e5a10cc9.2cc6a","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"var opencount = opencount;\nvar runonce = runonce;\nif (runonce == \"null\")\n{\n opencount = 0;\n msg.payload = (opencount);\n runonce = 1;\n}\nif (msg.payload == 'open')\n{\n opencount = 1;\n}\nelse\n{\n opencount = 0;\n}\nmsg.topic = 'kitchen';\nmsg.payload = (opencount);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":820,"wires":[["5fcc828a.c8c55c"]]},{"id":"87d4e2ac.bed1c","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"var opencount = opencount;\nvar runonce = runonce;\nif (runonce == \"null\")\n{\n opencount = 0;\n msg.payload = (opencount);\n runonce = 1;\n}\nif (msg.payload == 'open')\n{\n opencount = 1;\n}\nelse\n{\n opencount = 0;\n}\nmsg.topic = 'dining';\nmsg.payload = (opencount);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":460,"wires":[["5fcc828a.c8c55c"]]},{"id":"7837bc35.0c8ed4","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"var opencount = opencount;\nvar runonce = runonce;\nif (runonce == \"null\")\n{\n opencount = 0;\n msg.payload = (opencount);\n runonce = 1;\n}\nif (msg.payload == 'open')\n{\n opencount = 1;\n}\nelse\n{\n opencount = 0;\n}\nmsg.topic = 'guest';\nmsg.payload = (opencount);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":700,"wires":[["5fcc828a.c8c55c"]]},{"id":"62ef7b3a.b5c514","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"var opencount = opencount;\nvar runonce = runonce;\nif (runonce == \"null\")\n{\n opencount = 0;\n msg.payload = (opencount);\n runonce = 1;\n}\nif (msg.payload == 'open')\n{\n opencount = 1;\n}\nelse\n{\n opencount = 0;\n}\nmsg.topic = 'front';\nmsg.payload = (opencount);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":580,"wires":[["5fcc828a.c8c55c"]]},{"id":"5fcc828a.c8c55c","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"context.data = context.data || {};\nswitch (msg.topic) {\n case \"den\": \n context.data.den = msg.payload;\n break;\n case \"kitchen\":\n context.data.kitchen = msg.payload;\n break; \n case \"front\": \n context.data.front = msg.payload;\n break; \n case \"guest\": \n context.data.guest = msg.payload;\n break; \n case \"dining\": \n context.data.dining = msg.payload;\n break; \n case \"firstrun\": \n context.data.firstrun = msg.payload;\n break; \n default:\n msg = null;\n break;\n} \nvar opencount = opencount;\n opencount = (context.data.den + context.data.dining + context.data.front + context.data.kitchen + context.data.guest);\n msg.payload = (opencount);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":700,"y":580,"wires":[["161c2857.698298"]]},{"id":"161c2857.698298","type":"change","z":"d4d11aac.7a6398","name":"Door topic","rules":[{"t":"set","p":"topic","pt":"msg","to":"doors","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":710,"y":520,"wires":[["2e8dc0cf.8c103"]]},{"id":"2e8dc0cf.8c103","type":"function","z":"d4d11aac.7a6398","name":"Compare","func":"context.data = context.data || {};\nswitch (msg.topic) {\n case \"windows\": \n context.data.windows = Number(msg.payload);\n break;\n case \"doors\":\n context.data.doors = msg.payload;\n break; \n case \"firstrun\": \n context.data.firstrun = msg.payload;\n break; \n default:\n msg = null;\n break;\n} \nvar opencount = opencount;\nvar runonce = runonce;\nif (runonce == \"null\")\n{\n opencount = 0;\n msg.payload = (opencount);\n runonce = 1;\n}\n opencount = (context.data.windows + context.data.doors);\n msg.payload = (opencount);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":700,"y":360,"wires":[["fc121df3.e4f92"]]},{"id":"e586fbba.4897c8","type":"change","z":"d4d11aac.7a6398","name":"Windows topic","rules":[{"t":"set","p":"topic","pt":"msg","to":"windows","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":220,"wires":[["2e8dc0cf.8c103"]]},{"id":"d0807237.45d98","type":"server-state-changed","z":"d4d11aac.7a6398","name":"Den Door","server":"2ee084e7.d905bc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.den_door_access_control_window_door_is_open","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":340,"y":280,"wires":[["e18f077.2ead9f8"]]},{"id":"e18f077.2ead9f8","type":"api-current-state","z":"d4d11aac.7a6398","name":"Den Door","server":"2ee084e7.d905bc","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.den_door_access_control_window_door_is_open","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":340,"y":340,"wires":[["794fa680.3b20c8","3456d5f2.00a88a"]]},{"id":"126818b8.811237","type":"server-state-changed","z":"d4d11aac.7a6398","name":"Dining Door","server":"2ee084e7.d905bc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.dining_room_door_access_control_window_door_is_open","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":350,"y":400,"wires":[["33461a50.344246"]]},{"id":"33461a50.344246","type":"api-current-state","z":"d4d11aac.7a6398","name":"Dining Door","server":"2ee084e7.d905bc","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.dining_room_door_access_control_window_door_is_open","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":350,"y":460,"wires":[["f15b5a70.a17df8","87d4e2ac.bed1c"]]},{"id":"5f04f0fc.f6c04","type":"server-state-changed","z":"d4d11aac.7a6398","name":"Kitchen Door","server":"2ee084e7.d905bc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.kitchen_door_access_control_window_door_is_open","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":350,"y":760,"wires":[["c46d0550.9b4698"]]},{"id":"c46d0550.9b4698","type":"api-current-state","z":"d4d11aac.7a6398","name":"Kitchen Door","server":"2ee084e7.d905bc","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.kitchen_door_access_control_window_door_is_open","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":350,"y":820,"wires":[["e5a10cc9.2cc6a","b05df403.1c5a18"]]},{"id":"467329ba.eeaff8","type":"server-state-changed","z":"d4d11aac.7a6398","name":"Guest Door","server":"2ee084e7.d905bc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.guest_bathroom_door_access_control_window_door_is_open","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":350,"y":640,"wires":[["58d43db6.3bcc44"]]},{"id":"58d43db6.3bcc44","type":"api-current-state","z":"d4d11aac.7a6398","name":"Guest Door","server":"2ee084e7.d905bc","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.guest_bathroom_door_access_control_window_door_is_open","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":350,"y":700,"wires":[["7837bc35.0c8ed4","79b26671.f01f08"]]},{"id":"ca81cfa8.8327f","type":"server-state-changed","z":"d4d11aac.7a6398","name":"Front Door","server":"2ee084e7.d905bc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.front_door","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":340,"y":520,"wires":[["f1c473b.84dc29"]]},{"id":"f1c473b.84dc29","type":"api-current-state","z":"d4d11aac.7a6398","name":"Front Door","server":"2ee084e7.d905bc","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.front_door","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":350,"y":580,"wires":[["b57eaa7b.7a2578","62ef7b3a.b5c514"]]},{"id":"afedd9f.bb70a28","type":"server-state-changed","z":"d4d11aac.7a6398","name":"Main Windows","server":"2ee084e7.d905bc","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.window_count_main","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":360,"y":160,"wires":[["c87456f8.10afa8"]]},{"id":"fc121df3.e4f92","type":"debug","z":"d4d11aac.7a6398","name":"Total Count","active":true,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":900,"y":360,"wires":[]},{"id":"2ee084e7.d905bc","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]