Ok, I think you want increment you click counts.
So, you can track it like this:
$(document).on("click", function(){
var click_count = parseInt($.cookie('_click_count')); // get clicks from cookie
if (click_count < 10 && click_count != NaN) // if count was started
$.cookie('_click_count', click_count + 1, {path: '/'}); // increase clicked count
else if (click_count === 10) // if you reached at 10
// do action
else // if you want to start again
$.cookie('_click_count', 1, {path: '/'});
})