(PHP 7 >= 7.2.0)
DOMNamedNodeMap::count — Get number of nodes in the map
Gets the number of nodes in the map.
This function has no parameters.
Returns the number of nodes in the map, which is identical to the length property.