Looping With Condition
//Declare and initialize
boolean[] votes = {true, false, false, true, false};
int yesVotes=0, noVotes=0;

//Determine how many list elements are true
for (boolean eachVote: votes)
	if (eachVote)
		yesVotes++;

//Elements that are false are simply totalCount - trueCount
noVotes = votes.length - yesVotes;

println("Votes: " + Arrays.toString(votes));
println("YES votes: " + yesVotes);
println("NO votes: " + noVotes);