Unable to get row count from SAP GUI Grid

Hi,

I am unable to get row count directly from SAP GUI Grid. What i am doing is I am exporting all records to excel then I am getting row count which is really lengthy process as just to get row count I am wasting so much of time.

Is there any other way?

Regards,
Rahul