With displaying the nr. of open contacts:
This can be achieved with an Advanced Virtual Device of the magnificent Device Capabilities app.
You can create a “master” contact which shows if any door/window is open or none.
There must be a way to have the status indicator display the number of open contacts, but probably there’s a flow needed for that, not sure.
Without displaying the nr. of open contacts:
You can create a < group > app group contact sensor. Add all of your contact sensors to that group, and set it’s behaviour to “ON when ANY on” & “OFF when ALL off”
This way you have a “master” contact sensor, which shows the status of your door & windows:
-all closed: no alarm
-any open: alarm
Put the “group” contact sensor on top of your favorite devices and done.
No flows needed