There is not a built-in way, but considering I understood correctly, I think this can be done with two nodes like this 🙂
[attachment file=”GetCount.png”]
Please let me know if that is indeed what you’ve asked and whether or not this works for you.
Thanks!