finds frequently used words based on criteria