Custom Object - Events and Status for Individual Contacts

How would you create a calculated property such as “Total number of events registered” on the contact record using this scenario?