Numbers please. Where do they come from?
Also, it doesn't matter how many food animals we have, what matters is how the majority of them are treated. And the majority are not meat and dairy cows raised in feedlots in the US, because that kind of farm animal is a small proportion of all meat an dairy animals bred the world over. From Our World in Data:
https://ourworldindata.org/grapher/global-meat-production-by...
You can see that pork and poultry make up the largest amount of meat produced. Though the plot shows meat rather than number of animals, remember that it takes seveal pigs or goats to make the same meat as one cow, and many more chickens. There are way more pigs and chickens farmed the world over than there are cows and cow farming (cow factory farming) is concentrated in the US, Argentina, Brazil and China:
https://ourworldindata.org/grapher/beef-and-buffalo-meat-pro...
It is those places where the images of tortured cows, that live their whole lives connected to milking and impregnating machines come from. It is such conditions that have to be eliminated. But in most of the rest of the world, those are not typical conditions and the numbers of animals raised are many, many fewer.
Edit: which is not to whitewash the pig and poultry industries. Chickens in particular are treated horribly, even the so-called "free range" ones (in many places it's enough for the chickens to be kept in a gigantic barn with a tiny bit of yard outside for the chickens to be considered "free range", legislation is often an absolute scandal). And there are many large pig farms were pigs are kept in absolutely inhumane conditions.
But, again- that's true in some places, not the world over and not for most animals.