Water has been detected in the atmosphere of a planet outside our solar system with a new technique that could help researchers to learn how many planets with water, like Earth, exist throughout the universe.