In addition to Amerandra's answer, the legumes state of nodulation also could play an important role (nitrogen supply). However, nodulation generally takes place pretty early and the amount of nodules formed depends on the available nitrogen in the soil.