How many individuals are needed to make up a population that generates healthy offspring?

I know it's a very specific question, but this is for a seed world project of mine…