Code

plugin: Keep a usage counter for each plugin.