hurin and huor dwelt as guests in the king 's house for well nigh a year ; and it is said that in this time hurin learned much lore of the elves , and understood also something of the counsels and purposes of the king .