MJP

architect • coder • strategist • musician • educator

Count Dictionaries

Count Dictionaries

Instructions

Implement a function that counts the number of dictionaries in an arbitrarily nested dictionary.

## Example

count_dictionaries({ "a": 1 }) # 1
count_dictionaries({ "a": { "b": { "c": 1 } } }) # 3