you can just use
on *:text:!count *:#: { msg $chan 9Channel 9has 4 $+ ( $+ $nick($chan,0) $+ ) $+ 9 Users. Halt }