def _get_segment_metrics(
        self,
    ) -> dict[EnvMetricsName, Callable[[], int]]:
        """
        Returns a callable that counts the number of segment overrides for the environment.
        """
        return {
            EnvMetricsName.SEGMENT_OVERRIDES: lambda: self.environment.get_segment_metrics_queryset().count(),
        }

        Returns a callable that counts the number of segment overrides for the environment.
        
api/metrics/metrics_service.py