Goal
Count how many times each integer appears across all lists in the input dictionary. Each value in the dictionary is a list of integers. Return a dictionary where each key is an integer that appears in any list, and the corresponding value is the total count across all lists.
Notes
You only need to handle integers. Assume all values are lists of integers; lists may be empty.
If the input dictionary is empty, return an empty dictionary.
Use the following function header as a starting point.
text
from collections import Counter
import itertools
def task_func(d):
What to implement
Flatten all the lists from the dictionary values.
Count occurrences of every integer across all lists.
Return a plain dictionary mapping each integer to its total count.