def get_all_counts(all_data, attribute, combine=False):
    """Get all counts for a field of interest.

    Parameters
    ----------
    all_data : list of lisc.ArticlesAll
        A list of data objects to extract data from.
    attribute : str
        The attribute to extract from the data objects.
    combine : bool, optional, default: False
    	Whether to combine the counts.

    Returns
    -------
    counts : list
        Extracted counts from across all the data objects.
    """

    counts = [getattr(data, attribute) for data in all_data]

    if combine:
        counts = sum(counts, type(counts[0])())

    return counts