get the nested catalog count
traverse catalogs rooted anywhere