Working ToDo count in localStorage!

With a lot of debugging that is to be removed.