Added numRows method