def get_count(results):
    """Get the number of documents in an Elasticsearch search result.

    Parameters
    ----------
    results : dict
        An Elasticsearch search result.

    Returns
    -------
    int
        The total number of documents matching the search criteria.

    """
    return results['hits']['total']