you could try something like this
where the for each loop gets the value of the array at every index (1 the first pass, 2 the second, so on…) then this converts the bool into integer where 1 = true and 0 = false and if the value is equal to 1 then it adds up the count of true bools.