use dom4j select object to count matched nodes