       a.index - b.index
     buildPopup()
     updateContextMenu()
+    updateStatistics()
 
   # Update the toolbar/browser action depending on the current settings.
   updateToolbar: ->

          parentId: parentId
          title:    template.title
        template.menuId = menuId

# Increment the usage for the template with the specified `key` and persist the
# changes.

# Initialize the settings related to statistical information.
initStatistics = ->
  store.init 'stats', {}
  updateStatistics()

# Initialize `template` and its properties, before adding it to `templates` to
# be persisted later.
