All of the scripts you've been given so far will increase the kick count even if you don't end up kicking the person for some reason, I'd use something like this instead:

Code:
on me:*:kick:#:{ 
  write kick.txt $knick kicked by $iif(%nick,$v1,$me)
  unset %nick
}
on @1001:text:!k &:#:{
  set -u3 %nick $nick
  kick $chan $2 $calc($lines(kick.txt) + 1)
}


New username: hixxy