How many nuclear missels does it take to destroy the earth?

There hasn't been a test on that yet, it would also depend on how big the warheads carried were.