SimpleXMLElement::count

Counts the children of an element