this song appeared to please thorin , and he smiled again and grew merry ; and he began reckoning the distance to the iron hills and how long it would be before dain could reach the lonely mountain , if he had set out as soon as the message reached him .