diff --git a/lib/DDG/Goodie/Frequency.pm b/lib/DDG/Goodie/Frequency.pm index 6c53e7166..78f43016a 100644 --- a/lib/DDG/Goodie/Frequency.pm +++ b/lib/DDG/Goodie/Frequency.pm @@ -17,7 +17,7 @@ handle remainder => sub { { if ($_ =~ /[a-z]/i) { - ++$freq{$_} if $_; + ++$freq{$_}; ++$count; }; };