use a save method of getting count of files to be ingested, instead of deprecated iterating over the result set