/// <summary>
        /// Get total document count.
        /// </summary>
        private Int64 SetTotalDocumentsCount()
        {
            var queryObject = new SearchQueryEntity();

            queryObject.QueryList.Add(new Query(_searchQuery));
            queryObject.MatterId  = Convert.ToInt32(_dataset.Matter.FolderID);
            queryObject.DatasetId = Convert.ToInt32(_dataset.FolderID);
            if (!string.IsNullOrEmpty(_reviewsetId))
            {
                queryObject.ReviewsetId = _reviewsetId;
            }
            queryObject.IsConceptSearchEnabled = _isIncludeConceptSearch;
            queryObject.LogSearchHistory       = false;
            // Getting the All document and Tag document count from DB
            if (_parametersExportLoadFile.ExportLoadFileInfo != null)
            {
                switch (_parametersExportLoadFile.ExportLoadFileInfo.DocumentSelection)
                {
                case DocumentSelection.SavedQuery:
                    var reviewerSearchService = new RVWReviewerSearchService(_webContext.Object);
                    using (var transScope = new EVTransactionScope(TransactionScopeOption.Suppress))
                    {
                        _totalDocumentCount = reviewerSearchService.GetDocumentCount(queryObject);
                    }
                    break;

                case DocumentSelection.Tag:
                    _totalDocumentCount = DocumentBO.GetNoOfDocumentsByTag(queryObject.MatterId,
                                                                           _dataset.CollectionId, _parametersExportLoadFile.ExportLoadFileInfo.TagId);
                    break;

                default:
                    _totalDocumentCount = DocumentBO.GetNoOfDocuments(queryObject.MatterId,
                                                                      _dataset.CollectionId);
                    break;
                }
            }
            return(_totalDocumentCount);
        }