The nation’s cattle herd has shrunk in recent years to the smallest since the early 1950s because droughts and higher production costs.