How to get the number of rows from Dataset?

Hi Team,

We have written integer data to dataset with some ‘x’ number of rows but i don’t know how many many number of rows are there in dataset.
And need to read all the rows with respective integer data which are present in the dataset.

Please kindly help us in achieving the solution.

Thanks in advance.