def doc_freqs(docs) -> dict:
    """
    Takes in a list of spacy Doc objects and return a dictionary of 
    frequencies for each token over all the documents. E.g. {"Aarhus": 20, "the": 2301, ...}
    """
    res_dict = {}
    for doc in docs:
        # create empty list to check whether token appears multiple times in doc
        duplicates = []
        for token in doc:
            if token.text not in duplicates: 
                # if token is not in dict; add token as key and 1 as value
                if token.text not in res_dict:
                    res_dict[token.text] = 1
                # if the token is already in dic; add 1 to the value of that token
                else: 
                    res_dict[token.text] += 1
                duplicates.append(token.text)
    return res_dict