How to creact NodeList live loop length checker

Solution for How to creact NodeList live loop length checker
is Given Below:

Topic : I am making TO DO list in clear JS
Topical Goal in code below : To limit goals for the day to 6
Problem : I can’t make loop which must limit it because the NodeList.length is static
So can you give ways how to do it

JS CODE

const
btnStart = document.getElementById('start')
app = document.getElementById('app')
add = document.getElementById('add')
list = document.getElementById('list')
btnStart.addEventListener('click', (event) => {
    setTimeout(() => {
        btnStart.style.display = 'none'
        add.style.display = 'block'
        list.style.display = 'block'
    }, 300)
})
var nclick = () => {
    list.innerHTML = list.innerHTML + '<li>
<input class="cb"  type="checkbox"    name="ttd" id = "to_do" >
<input type="text" class="text"   placeholder="_______________________________________"></li >'
}
let a = list.getElementsByTagName('li')
//Here must be a loop of Live NodeList length