Implemented updateCookie() count method.