In question Nested defaultdict of defaultdict is described how to create a nested dictionary. This works so far until I want to increment a non-existing key. See the followi