Collect frequent words from all files.