Overview
Returns number of nodes at specified xpathnumber myXml.Count()
number myXml.Count(xpath: string)
Arguments
string xpath
XPath to count. If not specified, the current node children are selected.
Example
Evaluate with an xpath
var customerCount = $Xml.Count('//Customer');