What's the minimum number of people needed to survive an apocalypse?

There are many ways the world could end, from all-out nuclear war to a giant asteroid strike. How many people would need to survive such an apocalypse for humans to avoid extinction?

May 5, 2021 - Live Science
There are many ways the world could end, from all-out nuclear war to a giant asteroid strike. How many people would need to survive such an apocalypse for humans to avoid extinction?