private int getTotalFileCount(DomainFolder folder) {
		int count = 0;
		count += folder.getFiles().length;

		for (DomainFolder subfolder : folder.getFolders()) {
			count += getTotalFileCount(subfolder);
		}

		return count;
	}
Returns the total number of files under the given folder. This does a recursive 
check to search all subdirs.

@param folder the folder to search
@return total number of files in the folder (and its subfolders)
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/ingest/IterateRepository.java