Let $G$ be a finitely generated abelian group. By the Fundamental Theorem of Finitely Generated Abelian Groups, $G$ may be uniquely written as a direct sum of cyclic groups. The rank of $G$ is the number of $\mathbb Z$ summands in this expression.
Wikidata ID: Q1260803