The simple fence surrounds the drilling operation. In Texas we call it a Horse Head Pump. If you click on the link, you can read about other nicknames for the oil well pump.
It is not unusual to see a herd of cattle in the same pasture.
I'm joining with Jan n' Jer Friday's Fences