private int GetAttachmentCount() { int count = 0; foreach(IFilesStorageProviderV30 prov in Collectors.FilesProviderCollector.AllProviders) { count += prov.ListPageAttachments(currentPage).Length; } return count; }