Use a regex to find the number of nodes from element name [applied]