Count the Number of Contacts

Goal: Count the number of contacts in the model.

Code:

contacts = DataModel.GetObjectsByType(DataModelObjectCategory.ContactRegion)
numContacts = contacts.Count
print("There are %s contact regions" % (numContacts) )