Better counter for cookies.js