Unless the applications have counters coded in to them, its not going to be that easy.
You may want to have a look at dzt's
useful library. There is a method called
GetProcesses that you may be able to call repeatedly and increment a counter when your chosen software runs. To do this, I suggest your Basic4PPC program runs as soon as the device is switched on (place a shortcut to it in the 'startup' folder) and have the program running minimised in the background.