I think the use of 2 recordets i this page is not the right approach. you should be using 1 recordset with a join query on your page.
in the querty you could also use COUNT(tablename.IDColumn) where tablename.IDColumn is the table and ID for the table you are looking to get the count from.
see the following page for more details on creating a join query:
sql_join.asp
and this page for details on using the COUNT function:
sql_func_count.asp