|How do I get the total number of rows returned in a rule?
You can get the number of rows through the use of the value count statistical function.
Statistical functions help to make data more relevant by providing summary data rather than raw data.
Below is the syntax for the value count function."wpath" is a wildcard path and can resolve to one or many targets. Set the correct relative path and the column name. The relative path will depend on your "Targets" path.
For more information on the different functions you can apply on rules, please refer to: Where can i see a list of functions the gateway rule engine supports