The effect of global warming is having a devastating consequence on the environment of some countries. There has been an increase in natural disasters such as floods and drought. Most governments are also signatories to some treaties that promote the diversification of fossil fuels to renewable energy. But as you rightly pointed out this drive to green energy is championed by mainly rich and developed countries. I don't think my country will fully stop the use of fossil fuel-powered cars in the next fifty years.
This is the problem with electric power, it is expensive. Other sources of power are cheaper in my area than electricity. In some places in my area, one can easily have access to firewood or kerosene to power a stove to cook. But cooking with electric gas is for the rich. This is why I said it will take time before many countries will embrace environmentally friendly sources of energy. Regarding the supply of these fossil fuels, they are boundless and cannot be quantified. Crude and natural games are in abundance that could last the world more centuries.