That would be a pen or a pasture!
* Pen: A smaller, enclosed area, usually fenced, where cows are kept for a short time, such as for milking or feeding.
* Pasture: A larger, open area of grass where cows graze and roam, still confined by fencing.
Let me know if you have any other questions!