A horse needs other horses in order to sleep without stress.
They will stand back-to-back and cover East,West,North,South - keeping lookout for each other. This is achievable in wild herds but not practical in a captive environment. They will use whatever they can: cattle, a tree, a fence, a mound or a building. 2hrs minimum sleep is essential or they will collapse.