Level 1 Count calls per key
Write CallCounter() with:
count(key) -> int: record one more call forkeyand return how many timeskeyhas been counted so far, including this call (so the first call returns1).peek(key) -> int: the current count without changing it (0for a key never counted).
Keys are any hashable values (strings, ints, tuples). Different keys have independent counts.
c = CallCounter()
c.count("a") # 1
c.count("a") # 2
c.count("b") # 1
c.peek("a") # 2
c.peek("zzz") # 0