  In this paper we obtain significant bounds for the number of maximal
subgroups of a given index of a finite group. These results allow us to give
new bounds for the number of random generators needed to generate a finite
$d$-generated group with high probability.
