The rank of a matrix is equal to the span of the column space of the matrix or the number of linearly independent columns of the matrix.
It can also be said that the rank of a matrix is equal to the number of non-zero rows in the reduced row echelon form of a matrix.