count

Usage

count [--quiet|:q] xpath

Description

Calculates a given expression expression. If the result is a node-list, print number of nodes in the node-list. If the expression results in a boolean, numeric or literal value, print the value.

If --quiet or :q option is used, output is suppressed and the value is returned.

See Also

get