Add methods numRows() and numCols()

@lileicc 
NUM_ROWS