This method of the ElementImpl class retrieves the number of child elements.
public int numElements();
Returns the number of child elements.