You can do that with /filter. Filter all the matching lines to a hidden custom window and then check $filtered.
Code:
...
window -h @@
filter -fw c:\stats-r-us\phazenet\#channel.20030127.log @@ *kickee*was*kicked*by*
close -@ @@
echo -s Found $filtered matches.
...