def METHOD_NAME(category, solved, count):
    if category not in category_counts_dict:
        category_counts_dict[category] = {"solved": 0, "unsolved": 0}
    category_counts_dict[category]["solved" if solved else "unsolved"] = count