# Get Row and Column Count

With DsExcel, you can quickly get the row and column count of the specific areas or all the areas in a range.

## Content

In a large worksheet, manually fetching the number of rows and columns can be a tedious task.
DsExcel allows users to quickly get the row and column count of the specific areas or all the areas in a range.
The [Count](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IRange.Count.html) property of the [IRange](/document-solutions/dot-net-excel-api/api/online/DS.Documents.Excel/GrapeCity.Documents.Excel.IRange.html) interface represents the cell count of all the areas in a range.
Refer to the following example code in order to get the row count and column count in a worksheet.

```csharp
var range = worksheet.Range["A5:B7"];

//cell count is 6.
var cellcount = range.Count;
//cell count is 6.
var cellcount1 = range.Cells.Count;
//row count is 3.
var rowcount = range.Rows.Count;
//column count is 2.
var columncount = range.Columns.Count;
```