The distribution of Galois extensions bounded by their discriminant shows similarities to that of rational points of bounded height on Fano varieties. In this talk, we will present a common framework for these two problems, along with some results obtained using this approach.