XML:getCount([path])

Count the number of elements that are children of an element. If no arguments are given, the count reflects the number of children of the current element. The one argument form returns the number of elements which are a child of the element at the specified path.

Example

count=doc:getCount()
count=doc:getCount('/foo/bar')