in reply to using hash to find frequency count
Maybe you could get some ideas from my Wordcounting with DBM files - can't open file? node.
Maybe not ;-)