Programmer's Guide > Interfaces > W3C NodeList interface > length attribute
  
length attribute
The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
length
Access
read-only
Returns
unsigned long