Be careful with using this function as it's not available for anything before PHP 7.2, use the length property instead
(PHP 7 >= 7.2.0, PHP 8)
DOMNodeList::count — Obtiene el número de nodos en la lista
Obtiene el número de nodos de la lista.
Esta función no tiene parámetros.
Devuelve el número de nodos de la lista, que es idéntica a la propiedad length.
Be careful with using this function as it's not available for anything before PHP 7.2, use the length property instead