Xml Count¶ Returns the number of nodes at the specified XPath. 1myXml.Count(xpath: string):number Parameters¶ string xpath The XPath to count. If not specified, the current node's children are selected. Remarks¶ Evaluate with an XPath¶ 1var customerCount = $Xml.Count('//Customer');