Counting files on S3 based TypeSystem: S3.countFiles times out


I have just loaded 15 billion rows (1 year historical measurements) into a tag for a S3 file based type (mixes FileTimedDataPoint) and I want to find out how many S3 files were created for this.

S3.countFiles(‘data/WellStreamMeasurement’) times out after 30 minutes.

Is there a smarter way to do this where there is a better chance of getting a number back?