Added new methods `getRowCounts` and `getColumnCounts`.