Count how many switches are turned on

This might give you what you need:

1 Like