The read-only length property of the NamedNodeMap interface is the number of objects stored in the map.
length
MDN Reference