Syntax
Return the number of active contacts. The optional argument allows filtering with a contact class name (e.g., mechanical) or a contact type name (e.g., ball-ball). By default, the mechanical contact list is considered.
i - number of active contacts
s - optional contact type name or contact type name
9.2.16