It seems I just need to click one cookie 10 times to win.
Thanks for the feedback, I hadn't considered that someone might click a cookie enough times before it vanished.