added test for counter and implemented code to have todo list counter