Put this script in your remote (Alt + R) and type ''/stats''.
I know some things can be made much easier.
on 1:nick:{ if ($nick == $me) { inc %nicks } }
on *:join:#:{ if ($nick == $me) { inc %joins } }
on 1:start:{ inc %starts | set %time $ctime }
on *:input:*:{ inc %lines | inc %words $0 }
alias stats { echo -a 7I have typed $+ %lines $+ lines, $+ %words $+ words and changed my nickname for $+ %nicks $+ times.
echo -a 7I have runned IRC for $+ %starts $+ times, joined $+ %joins $+ channels and spent $+ $duration($calc($ctime - %time)) $+ on IRC. }
CaFaRo here is another small code you can use also with ure stats snippets it is for total user count for the room ops voice and regulars
alias stats { describe # total user count: $nick(#,0) opped: $nick(#,0,o) voiced: $nick(#,0,v) regular: $nick(#,0,r) }
fill free to use this or alter it has you need and nice lil snippet.