Earth's total land area is 196.9 million square miles.
The proportion of this which is farmable is 37.7%.
Therefore the total farmable land area is 74 million square miles.
Intensively cultivated corn yields 15 million kcal per acre.
There are 640 acres per square mile.
Therefore intensively cultivated corn yields 9.6 billion kcal per square mile.
Therefore intensively cultivating corn on all farmable land on earth would produce 7.1 * 10^17 kcal (9.6 * 10^9 * 74 * 10^6).
Each human needs 7.3 * 10^5 kcal per year (based on 2000 kcal/day).
Therefore, the number of humans that can be fed if all farmable land on earth grows corn is 970 billion ((7.1 * 10^17) / (7.3 * 10^5)).
If you like eating (field!) corn all day, every day, that is. Also, it's a good thing there's an unlimited supply of natural gas because this is a (practically) required feedstock in producing all that corn.