title: Extension website statistics
body: <p>I want to create an extension that can keep a count of the websites that I visit and the number of times I visit each website.</p>
  
  <p>I dont want t ouse the history API in order to get the statistics. I have tried the onUpdated event listener it just keeps on storing the websites whenever I shift tabs.</p>
  
  <p>How can I do this ?</p>
  
  <p>background.html : </p>
  
  <pre><code>chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
  if(changeInfo.status == "complete")
    console.log(' url: ' + tab.url + ' change: ' + changeInfo.url);}
  });
  </code></pre>