rows(A) returns the number of rows in A.