code: def _calc_overlap_count(
      markers1: dict,
      markers2: dict,
  ):
      
      overlaps=np.zeros((len(markers1), len(markers2)))
  
      j=0
      for marker_group in markers1:
          tmp = [len(markers2[i].intersection(markers1[marker_group])) for i in markers2.keys()]
          overlaps[j,:] = tmp
          j += 1
  
      return overlaps
docs: Calculate overlap count between the values of two dictionaries
  
      Note: dict values must be sets