$lines(filename)
Returns the total number of lines in the specified text file.
$lines(c:\irc\kicks.txt) returns the total number of lines in c:\irc\kicks.txt
type /help $lines to get there in the help file. Im not sure if that will read mrc files the same way, they are just text files, but windows doesnt treat them that way unless you specify ...I think.