hutch_python.utils.count_ns_leaves

hutch_python.utils.count_ns_leaves(namespace)

Count the number of objects in a nested IterableNamespace.

Given an IterableNamespace that contains other IterableNamespace objects that may in themselves contain IterableNamespace objects, determine how many non-IterableNamespace objects are in the tree.