Clear my count in Js - todolist project

Hi coders,
Happy New Year!!!
I’m doing always my todoList project and I have other problem:
I want to “clear” my count, when a task is deleted, but I don’t know how I can do.
I try this solution , but didn’t work.

//Reset task
var reset = function() {
    a = 0;
    document.getElementById('Value').innerHTML = 0;
}

var resetButton = document.querySelector("#reset");
resetButton.addEventListener("click", function() {
    reset();
})

This is full project link:
https://codepen.io/camilco/pen/OJPLywM?editors=1010

I could be off base here but it seems you’re setting ‘value’ to 0… when maybe you should be changing the “list” element.

I understand the behavior of the function, but I’d like it to decrement the div where there is 0 Task next to button