Added rowcount for commands

Added rowcount for commands