Hi Eswar,
I alerted my row counts before the execute command method on iCommand and it returned me zero.
When I alerted it after execute command, it alerted me a row count of 60.
So it does not seem to be the case that executeCommand has to be run before calling getRowCount() on iCommand applet.
I would suggest, please recheck that the applet name and other variables are correctly written in the code.
--Rutika