A pen of sheep in fenced-in area peering out through the slats.
a sheep behind a fence looking at the camera 
A sheep gazing intently through a stable fence as another looks back.
The cows are inside of the stalls in the barn.
Sheep inside an enclosed area looking at the camera.