code: def get_num_distances(gsims):
      
      dists = set()
      for gsim in gsims:
          dists.update(gsim.REQUIRES_DISTANCES)
      return len(dists)
docs: :returns: the number of distances required for the given GSIMs