code: private void resetTargetCountDetails() {
          final long totalTargetsCount = getTotalTargetsCount();
          managementUIState.setTargetsCountAll(totalTargetsCount);
  
          final boolean noTagClicked = managementUIState.getTargetTableFilters().isNoTagSelected();
          final Long distributionId = managementUIState.getTargetTableFilters().getDistributionSet()
                  .map(DistributionSetIdName::getId).orElse(null);
          final Long pinnedDistId = managementUIState.getTargetTableFilters().getPinnedDistId().orElse(null);
          final String searchText = managementUIState.getTargetTableFilters().getSearchText().map(text -> {
              if (StringUtils.isEmpty(text)) {
                  return null;
              }
              return String.format("%%%s%%", text);
          }).orElse(null);
  
          String[] targetTags = null;
          if (isFilteredByTags()) {
              targetTags = managementUIState.getTargetTableFilters().getClickedTargetTags().toArray(new String[0]);
          }
  
          Collection<TargetUpdateStatus> status = null;
          if (isFilteredByStatus()) {
              status = managementUIState.getTargetTableFilters().getClickedStatusTargetTags();
          }
  
          Boolean overdueState = null;
          if (managementUIState.getTargetTableFilters().isOverdueFilterEnabled()) {
              overdueState = managementUIState.getTargetTableFilters().isOverdueFilterEnabled();
          }
  
          final long size = getTargetsCountWithFilter(totalTargetsCount, pinnedDistId,
                  new FilterParams(status, overdueState, searchText, distributionId, noTagClicked, targetTags));
  
          if (size > SPUIDefinitions.MAX_TABLE_ENTRIES) {
              managementUIState.setTargetsTruncated(size - SPUIDefinitions.MAX_TABLE_ENTRIES);
          }
      }
docs: Set total target count and count of targets truncated in target table.