Thank you, Ross (as usual!). One more question. Is there a way to have GAM output the folder IDs on each line when it writes the counts to the csv? Reason I'm asking is because I intend to use this to get counts on several hundred directories in a user's MyDrive simultaneously. I checked the output file and it gives the counts, but does not write the folder IDs.
Or, can I assume that the order in which I input the folder IDs in folderids.csv will match up with the line item output in foldercounts.csv?
Your help as always is very much appreciated.