DataSet is a container for DataTables, the each row of your DataTable is held in the DataRowCollection, which is the Rows property of the DataTable.
The beloe code helps you to fetch row count of the specified dataset named 'ds'
ds.Tables("mytable").Rows.Count