function numSentMessages extends Modelica.Icons.Function; input Integer id; output Integer count; end numSentMessages;