Sure, take a look at the following classes:
There are a few examples about how to do it if you look in StackOverflow for any of those classes. I don't know if you can check how many times it was launched unless you log it somehow! About the interaction maybe you could make some stats checking memory usage? :S
Hope it helps :)