Returns the number of messages in the queue
function numEvents input Integer queue; output Integer out; end numEvents;