MatrixRank

MatrixRank[matrix]
returns the rank of matrix.