Have you heard of the Drake equation? It’s a mathematical tool for estimating the number of advanced civilisations in the Milky Way galaxy. The better you know the respective factors, like number of stars, number of planets, fractions of planets capable of supporting life etc., the more precise your estimate will get.