My favorite is XPath:
let $numberOfWords := count($words[.])
or let $numberOfWords := $words[.] => count() let $numberOfWords := count($words[.])
or let $numberOfWords := $words[.] => count()No comments yet.