boolean array[] = { false, false, true, false, true };
BooleanArray bools = new BooleanArray( array );
UnaryPredicate predicate = new LogicalNot();
int n = Counting.countIf( bools, predicate );
System.out.println( "Number of false in " + bools + " = " + n );