You don't have to write the word cookie again, just use $1 to return it from the match text of the event:
Quote:
on *:text:cookie:#: if (!%f) { inc -u5 %f | .describe $chan gives $nick a $1 }