added cookie counter