A sort of crappy and hacky word_counter, but it does the job