See if this works:

Code:
on me:*:join:#channel: {
  //echo -a Channel Counter: There are $nick(#,0) Ppl present in $chan = $nick(#,0,o) Ops, $nick(#,0,v) Voiced and $nick(#,0,r) regs.
}


If that works for you, you would combine it into an existing ON JOIN event by doing this:

Code:
on *:join:#channel: {
  if ($nick == $me) { //echo -a Channel Counter: There are $nick(#,0) Ppl present in $chan = $nick(#,0,o) Ops, $nick(#,0,v) Voiced and $nick(#,0,r) regs. }
  more code
  more code
  more code
  more code
}



Hope this helps


Those who fail history are doomed to repeat it