count of element in XPath August 30, 2023 by Tarik You can try the following: count(//element/Element1[namespace-uri()='mynamespace'])