@XYZ_1991 You can get rows and columns count.
rowsCount = datatableExcel.Rows.Count columnsCount = datatableExcel.Columns.Count
Refer This Post