let count = 0;
let rate = 2; // change this to whatever you want
setInterval(() => {
count += rate;
console.log(count);
}, 1000);