I’m not sure that I fully understand what you’re trying to count here - It looks like the party
array could have X number of items so you could get that number by using:
console.log(jsonObject.CIM.party.length)
If that’s not the data point that you need, would you be able to expand on that a bit more so I can offer a more targeted solution