A vector space $V$ with the closure operation defined by taking a subset $A \subseteq V$ to the linear span of $A$ is a quintessential example of a pregeometry. To any vector space $V$ we may define the dimension of $V$ to be cardinality of a basis, a maximal linearly independent set. It follows from Zorn’s Lemma that bases exist and some simple manipulations permit one to see that all bases have the same cardinality so that $\dim V$ is a well-defined cardinal.
We may transpose the definition of a basis to any pregeometry and then the proofs of the existence of bases and that they all have the same cadinality lift from linear algebra to general pregeometries.