Return number of items in the argument's value.
The following construct(s) refer to this construct:
fn:count(item* $sequence) => unsignedInt
This aggregate function returns the number of items in the value of
$sequence
. If $sequence
is the empty sequence, the
function returns zero.
$sequence |
item value |
---|
Count all comment nodes in the current collection:
count(input()//comment())