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() {

This is full project link:

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

All this does is assign the value 0 to the innerHTML property of the element with id=“Value”. This does nothing to reset the value of your overall count variable.

Also, when you remove an item, you are not decreasing the value of your overall count variable nor are you changing the innerHTML property of the element containing the count.