The FileList_Count() function returns the number of files in the specified file list.
FileList_Count(filelist)
• filelist – A long integer specifying the file list for which the files are being counted.
An integer containing the number of files in the file list.
The file list count is -1 if the file list has not been created.