from typing import Dict


def get_bags_inside(color: str, dependency_dict: Dict[str, Dict[str, int]]) -> int:
    """Recursively count the bags stored wthin color, including itself"""
    count = 1
    inner_bags = dependency_dict[color]
    for bag_color, bag_count in inner_bags.items():
        count += bag_count * get_bags_inside(bag_color, dependency_dict)
    return count