In the subject "Algebraic Topology" we define the Betti's number as the greater number $\beta_p$ such that a family $\{z^i_p\}_{i=1}^{\beta_p}$ of $p-$cicles are linearly independent (i.e. there's no exists a family $\{\lambda_i\}_i\subset \mathbb{Z}$ such that $\sum_{i} \lambda_i z^i_p$ is homologous to $0$).
How can I see that this definition of Betti's number is equivalent to be the rank of the free part of the $p-$homology group?
Thank you in advance.