Changed getting the row count of a sparse matrix from being an public attribute of the matrix to a method call.