I am not sure I fully understand the data that is being printed.
print "$element\t=>$count{$element}\n";
I seem to getting a strange error Use of uninitialized value in concatenation (.) or string at searchfile.pl line 91, <FILE> line 1023078.
Is there a problem with the hash and how its counting the elements