I have a custom post type "Services". It has a hierarchal taxonomy of "service-category". Service-category has both parent and child terms.
I need to count the number of parent terms in the taxonomy. NOT posts. The # of terms in the taxonomy is being used in my code to layout the page in a recursive loop.
Everything I have researched is about the number of posts per term, not the number of terms in the taxonomy.. I am sure I am missing an obvious way of doing this, but I haven't run across it.
Thanks in advance for your help!