Create counter logic.js