adding counter.js