public static int countNodes(String xpathExpression, Document doc) throws JaxenException {
    """
	Count the number of nodes, that are matching against an XPath expression.
	
	@param xpathExpression the XPath expression to match
	@param doc             the document, on which the XPath expression is evaluated
	@return number of matching nodes
	@throws JaxenException if the XPath evaluation failed
    """
        return XmlUtils.countNodes(xpathExpression, doc, doc);
    }
public static int countNodes(String xpathExpression, Document doc) throws JaxenException {
        return XmlUtils.countNodes(xpathExpression, doc, doc);
    }
public static int countNodes ( String xpathExpression , Document doc ) throws JaxenException { return XmlUtils . countNodes ( xpathExpression , doc , doc ) ; }
Count the number of nodes, that are matching against an XPath expression.

@param xpathExpression the XPath expression to match
@param doc             the document, on which the XPath expression is evaluated
@return number of matching nodes
@throws JaxenException if the XPath evaluation failed
Count the number of nodes that are matching against an XPath expression .