code: def get_secondary_count(context, default=0):
      
      if not is_ar(context):
          return default
  
      primary = context.getPrimaryAnalysisRequest()
  
      if not primary:
          return default
  
      return len(primary.getSecondaryAnalysisRequests())
docs: Returns the number of secondary ARs of this AR