Dann versuch doch einfach:

select count(*) into : MyCount from qtemp/mytable