the number of (type)
This construct returns the number of objects in the current data set or in the specified
collection.
Purpose
You use this construct to count the number of objects of the specified type and return the total as a number.
Syntax
the number of <type> [in <list>] [where <test>,]
Description
You can use the optional in <list> clause to count
the objects in a specific list. You can use one or more optional where clauses to apply additional conditions to the objects that are included in the
returned count.
This construct cannot be used in the definitions part
of a rule.
Example
The following condition is met if there are at least 6 vehicles:
if the number of vehicles is more than 5 then...