$ npm install count-tabs
Count the tabs that a user has open.
var tabs = require('..')(function (up) { document.getElementById('tabs_counter').innerText = up })
MIT