The Frequent Words Problem