
ValueIterator.count as Number
[DEPRECATED: Only available for type checking; use Sequence instead.] Return a count of how many values are in the iterator.
// How many lines in the song?
let node = cts.doc("song.xml");
node.xpath(".//LINE").count;
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.