The basic structure you should use is the following:
Set vFolder = 'C:\Users';
for each vFoundFile in filelist( vFolder & '\*.qvd')
Load '$(vFoundFile)' as SourceFile autogenerate 1;
Then you can use Count(SourceFile) to find the number. You could optionally also load the file itself inside the loop.