def lookup(word_pair, global_dict):
    """Compute counts of each word in the word pair and the word pair itself in the list of all token pairs

    Args:
        word_pair (tuple): tuple of word pairs- (w1, w2)
        global_dict (dict): dict consisting frequency of each tokens and token_pairs

    Returns:
        list: list containing counts of w1, w2 (in the tokens list) and counts of word_pair (in the token_pairs list)
    """

    Cw1 = global_dict.get(word_pair[0])
    Cw2 = global_dict.get(word_pair[1])

    Cw1_w2 = global_dict.get(word_pair)
    return [Cw1, Cw2, Cw1_w2]