Do horses get lonely?

Horses are herd animals, most of them really appreciating company , even if it is not a horse (a goat, donkey or other small animal may work).