code: def count_group(group_id, failures=False, cached=Conf.CACHED):
      
      if cached:
          return count_group_cached(group_id, failures)
      return Task.get_group_count(group_id, failures)
docs: Count the results in a group.
  
      :param str group_id: the group id
      :param bool failures: Returns failure count if True
      :param bool cached: run this against the cache backend
      :return: the number of tasks/results in a group
      :rtype: int