title: Count number of "true" booleans in array
body: <p>I have an BooleanArray filled with 17 values.
  I want to loop through that array and count how many of them are true, or break and set a flag when it reaches a certain amount of true values. So if the array containes 6 booleans that are "true" I want to break the loop and do something.</p>
  
  <pre><code>BooleanArray booleanArray = new BooleanArray(17);
  booleanArray.add(handler.get(0).getStatus());
  booleanArray.add(handler.get(1).getStatus());
  booleanArray.add(handler.get(2).getStatus());
  booleanArray.add(handler.get(3).getStatus());
  booleanArray.add(handler.get(4).getStatus());
  //etc...
  </code></pre>
  
  <p>It's how to build this loop I'm not sure on how to. </p>