You can record the number of times a compound block is executed in a simulation or target application by creating an iteration counter in the compound block and sending the counter value back over the HotLink.