private static int GetBruteForceCountImmediate(string domainController, OrganizationId orgId, string systemAddressListName, int countQuota)
        {
            QueryFilter filter;

            if (!CannedSystemAddressLists.GetFilterByAddressList(systemAddressListName, out filter))
            {
                throw new ArgumentException("SystemAddressListName");
            }
            ADSessionSettings             sessionSettings = ADSessionSettings.FromOrganizationIdWithoutRbacScopes(ADSystemConfigurationSession.GetRootOrgContainerIdForLocalForest(), orgId, null, false);
            IRecipientSession             tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(domainController, true, ConsistencyMode.PartiallyConsistent, sessionSettings, 278, "GetBruteForceCountImmediate", "f:\\15.00.1497\\sources\\dev\\data\\src\\directory\\SystemConfiguration\\ConfigurationCache\\SystemAddressListMemberCount.cs");
            ADPagedReader <MiniRecipient> adpagedReader = tenantOrRootOrgRecipientSession.FindPagedMiniRecipient <MiniRecipient>(null, QueryScope.OneLevel, filter, null, 0, new PropertyDefinition[]
            {
                ADObjectSchema.Id
            });
            int num = 0;

            foreach (MiniRecipient miniRecipient in adpagedReader)
            {
                num++;
                if (num >= countQuota)
                {
                    return(num);
                }
            }
            return(num);
        }