code: def _set_target_root_count_in_runtracker(self):
      
      # N.B. `self._target_roots` is always an expanded list of `Target` objects as
      # provided by `GoalRunner`.
      target_count = len(self._target_roots)
      self.run_tracker.pantsd_stats.set_target_root_size(target_count)
      return target_count
docs: Sets the target root count in the run tracker's daemon stats object.