on *:JOIN:#chan:{
if ( $readini users.ini Users [ $nick ] == $null ) {
/write chan.txt $nick
/writeini users.ini Users [ $nick ] listed
}
}

i use this one...
and than it comes how many times the user had been in the chan (after nick). But how do i just like !nick Oggabogga and it comes like Oggabogga has been in chan 2 times ?