snapshotLength

The read-only snapshotLength property of the XPathResult interface represents the number of nodes in the result snapshot.

MDN Reference