The NodeList.length property returns the number of items in a NodeList.
NodeList.length
MDN Reference