How can we count the number of words inside a heading? (excluding the properties drawer and the actual heading title)
**Answer :PROPERTIES: :ID: <guid> :END: This is some text here
What I have been able to accomplish:
(org-id-goto "guid") (org-mark-subtree) (count-words (region-beginning) (region-end))
What I want is only counting
This is some text here, not the entire heading, unlike what we get via the
Edit: Let me perhaps describe my usecase a little more. What I am using org mode in this instance is for keeping track of word-limited essays, given a prompt. So my org file looks more like this:
* DRAFTING Essay 1 ** Prompt Describe a place in 60 words ** Answer It is very beautiful...
What I need is to count all words under the answer heading. Unable to find a way to do so, I created an ID so that I could use it to navigate, but that seems to add the overhead of the properties drawer. If I could find a way to only get the number of words, I can subtract the (in this case, fixed) number of words/characters taken by the heading and the properties drawer and get what I need.