เพื่อหาจำนวนโหนดใน NodeList ให้ใช้คุณสมบัติ length ซึ่งจะคืนค่าจำนวนโหนดที่อยู่ในรายการ
ตัวอย่าง
<!DOCTYPE html>
<html>
<body>
<p>Demo Text1</p>
<p id="pid"></p>
<script>
var myLen = document.querySelectorAll("p");
document.getElementById("pid").innerHTML = "This document has " + myLen.length + " paragraph tags.";
</script>
</body>
</html>