This function getNumberOfElectricalPins identifies the number of electrical pins. At the current library version it is fixed to 4.
function getNumberOfElectricalPins extends Modelica.Icons.Function; output Integer ret "Number of pins"; end getNumberOfElectricalPins;