Is there an easier way to count the related posts than running a query to get the relationship then looping through all of the related posts? We want to do this in a few places, and we're concerned about the performance of running a query every time we want to count the posts.
For context, this would be used in a scenario similar to the following:
Ok, so how do you do it?
I'm working on real estate website. It's built on Oxygen builder. So I can use repeater or metabox views (prefer the repater). I've got "People" assigned to "Properties". What I need to query is count of assigned properties to particular person.