implemented counter for how many todos are left