in reply to XML::LibXML count nodes
Try this:
I've done it by assigning the nodes to an array and then just printing the number of elements in the array.