Syntax
Get number of active thermal contacts around a thermal ball. The optional argument enables filtering by contacting piece type.
ir - active contact number
bt - thermal ball pointer
i - optional unique piece type identification integer