May I suggest a couple of alternative approaches.
Using the example given on selecting row count
a) Use union.
select 'TableA' as tablename, count(*) from TableA
union
select 'TableB' as tablename, count(*) from TableC
union
select 'TableC' as tablename, count(*) from TableC
b) Use a table containing 2 columns, tablename and count.
Insert into that table the result of the "select 'TableA' as tablename, count(*) from TableA"
The above can either be achieved using SQL queries on VC or as Stored Procedures.
Personally I prefer having my queries(views) or stored procedures on SQL. In that way they are available to the DBA as well.
I use the above methodology extensively.
Graham