Reduce your matrix to row-echelon form. The row vectors with the leading 1's form a basis for the row space of R and the columns with the leading 1's of the row vextors form a basis for the column space of R.

The rank is the dimension of the row and column space. They should be the same.

For ref, I get: