if(exists $userhash{$username}) { $userhash{$username}++; } else{ $userhash{$username}=1 ; }