code: def plugin_counts(self):
          
          ret = {
              'total': 0,
          }
  
          # As ususal, we need data before we can actually do anything ;)
          data = self.raw_query('plugin', 'init')
  
          # For backwards compatability purposes, we will be handling this a bit
          # differently than I would like.  We are going to check to see if each
          # value exists and override the default value of 0.  The only value that
          # I know existed in bost 4.2 and 4.4 is pluginCount, the rest aren't
          # listed in the API docs, however return back from my experimentation.
          ret['total'] = data['pluginCount']
  
          if 'lastUpdates' in data:
              for item in ['active', 'passive', 'compliance', 'custom', 'event']:
                  itemdata = {}
                  if item in data['lastUpdates']:
                      itemdata = data['lastUpdates'][item]
                  if item in data:
                      itemdata['count'] = data[item]
                  else:
                      itemdata['count'] = 0
  
                  ret[item] = itemdata
          return ret
docs: plugin_counts
          Returns the plugin counts as dictionary with the last updated info if
          its available.