SubFolders = []
Files = []
Count = -1
for (path, dirnames, filenames) in os.walk(MasterFolder):
SubFolders.extend(os.path.join(path, name)
for name in dirnames)
Files.extend(os.path.join(path, name)
for name in filenames)
print ('\n')
Count = Count + 1
print ("Rows for Excel: ", Count, "\n")