def get_term_count_agg(results):
    """Convenience function for extracting the date histogram from the a term
    count aggregation.

    Returns:
        list: A list of aggregation buckets containing both the date and the
            aggregated term count for that bucket.
    """
    return results.get('aggregations', {}).get('term_counts_by_day', {}).get('buckets')