Is there an idiomatic way to count org-mode subtrees?
I searched here on emacs.sx and other search engines, but I could not find an answer.
I know one could easily count subtrees with a regex, but I was wondering if the org API has means to fulfill more sophisticated counting needs, like,
- How many second-level headlines under current tree?
- How many third-level headlines in total in the current buffer?