updated counter
counter.js