Return number of items in the argument's value.
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())
The following construct(s) refer to this construct: