Summary field that shows the total # of contacts associated to custom object

Hey

I’m using custom objects for Events. On the main page, I’d like to feature fields that show the total # of associated contacts by each label. Is there a way to calculate this and have it update in real-time?

Figured it out.

Create a calculation field on the custom object. Set it up like this: