Thank you both of your replies. Yes i am just counting up the occurrences of the strings.
What i am worried is, without the 'exists' check,
$rh_count->{$keyword}++ would give a warning since it would be undef (provided that it wouldnt have been used before)