The DOM Count XML elements command returns the number of “child” elements dependent on the elementRef parent element and named elementName.
If the command has been correctly executed, the system variable OK is set to 1. If an error occurs, it is set to 0.