What is the relationship between the Betti numbers $b_i(M;\mathbb{Q})=rkH_i(M;\mathbb{Q})$ of a simply connected closed Riemannian manifold $M$ and the dimension of rational homotopy $\dim_{\mathbb{Q}}\pi_i(M)\otimes\mathbb{Q}$ (if there is any)?

[Cross positing on MSE](https://math.stackexchange.com/questions/2861850/relationship-between-betti-numbers-b-im-mathbbq-and-the-dimension-of-rati)

Thanks in advance!