STRQMQRY has only the following options – you can display the results on your wrkstn (if run interactively), print the results or write output to a file.
I would recomment creating a file in QTEMP. This way you can get rid of the file after your job ends.
As for no,of records, you can use the QUSRMBRD API to retrieve the info.
Hope this helps.