Can you expand on the difference between "how many times a function has been run" and "Completes successfully".
Completes successfully could mean it returns a flag indicating that the internal operations of the function were successful - opening a file on an SD card for example.
Which were you wanting to keep track of?