Set max number of words constraint