You're right, thanks ricky. smile

Danko, this code will prevent anyone who's already used the !count command from doing so again for 30 seconds.
Which as Ricky rightfully said, to add it because you do get idiots on IRC that will use the command roughly 4-5 times one after the other. If you think 30 seconds is too short, expand it to a greater duration.

set -u60 %count. [ $+ [ $nick ] ] on for example.

Code:
on 1:Text:!count:#: {
  if (%count. [ $+ [ $nick ] ]) { 
    return
  }
  else { 
    set -u30 %count. [ $+ [ $nick ] ] on
    msg $chan There are $lines([color:blue]file[/color]) lines of text in [color:blue]file[/color].
  }
}


Or as I suggested earlier...

Code:
on 1:Text:!count *:#: {
  if (%count. [ $+ [ $nick ] ]) { 
    return
  }
  else { 
    set -u30 %count. [ $+ [ $nick ] ] on
    if ($isfile($2-)) {
      var %count = $numtok($2-,46)
      if ($gettok($2-,%count,46) == mrc || $gettok($2-,%count,46) == ini || $gettok($2-,%count,46) == txt || $gettok($2-,%count,46) == doc) { 
        msg $chan $2- has a total of $lines($2-) line(s) with a size total of $bytes($file($2-),kb).suf $+ .
      }
    }
  }
}