There are at least 300 million potentially habitable planets in our galaxy, NASA finds