Limit dictionary and frequency