def citation_metrics(publications):
    """
    Return the h_index and total number of citations calculated from a list of
    publications.
    """
    cite_counts = sorted([v['citations'] for v in publications], reverse=True)
    for j, k in enumerate(cite_counts):
        if j + 1 > k:
            return j, sum(cite_counts)

    return len(cite_counts), sum(cite_counts)