This is my default reply in #Helpesk to your question.
To create a kickcounter that will keep track of people you have kicked out of a certain channel, use this line in your remote section:
on @*:KICK:#: if ($nick == $me) {
inc %kc. [ $+ [ $chan ] ] 1
.notice $knick You are person number %kc. [ $+ [ $chan ] ] I have kicked out of $chan $+. Thank you and have a nice day.
}
Keeps different counters for the different channels you op in. It however does not add the count to your kick msg. You can script that by kicking via a popup or automated script, and simply in that code append
%kc. [ $+ [ $chan ] ] to your kick message.