todo counter implemented