Considering a matrix A which has vectors v1=[1;0;0] and v2=[1;1;0] i.e. this matrix A is spanned by the vectors v1 and v2.
The rank of this matrix A is 2. Going by the definition of the rank of a matrix it means the number of independent vectors or the dimension of the row space.
Seeing A={v1,v2} with a cardinality of 2 an we say that the cardinality is the same as the rank of the matrix which in turn means that it gives the number of independent vectors spanning A