This title is a bit misleading, as gigafactories are not involved in energy production, but energy storage. Closely related obviously, but not the same thing.
I wonder what they actually calculated. You can measure/calculate the output of the factory in terms KWH of storage capacity produced daily. But what metric characterizes "the whole world" that you could then compare that number to in order to decide that 100 factories are enough?