if (info != null) {
String countExpression = info.getCountExpression();
if ((countExpression != null) && (countExpression.length() > 0)) {
XPath xpath = XPathFactory.newInstance().newXPath();
XmlNamespaces ns = info.getNamespaces();
XmlNamespaceContext nc = new XmlNamespaceContext(ns);
xpath.setNamespaceContext(nc);
String sCount = xpath.evaluate(countExpression,dom);
try {
Integer nCount = Integer.valueOf(sCount);
return nCount;