Is any entry of a Boolean vector true?
function numTrue input Boolean vec[:]; output Integer numtrue; end numTrue;