here is a program I wrote to check word frequency is there a way to make it better