COUNT inputVector test resultVariable

Counts the number of elements of the input vector that satisfy the test and puts the resulting count into the result variable. Any former contents of result variable are replaced.


URN 3#5 4#6 A
COUNT A =5 B
PRINT A B

The above program produces the following output:

A: (5.0 5.0 5.0 6.0 6.0 6.0 6.0)
B: 3.0