Thanks so much for your response. I think that gets me started. It does the math for me, which is fantastic!
This next question may be even more mundane than the last, so please bare with me. Ultimately, I'd like to embed the result in the middle of a static post. In other words, in the middle of the post there will be something like, "we now have X subtopics from which to learn all about the main topic in greater detail." I assume I'll need to put the counting code in a function and then call the function somehow... or is this where custom fields come in to play? I've never used them before. Or perhaps there is some other way of which I am unaware to accomplish this goal. Thoughts? Thanks so much!