JSFiddle - React, Tailwind, and code Playground
HTML
<div>
Нас зарегистрировалось: <span id="my__counter"></span>
</div>
JavaScript
var speed = 1;
function goCounter(){
var timestamp = Math.round(new Date().getTime() / 1000),
counter = Math.ceil(timestamp * speed),
interval = Math.floor(Math.random() * (4000 - 1000 + 1)) + 400;
$('#my__counter').text(counter);
setTimeout(function(){ goCounter(); }, interval);
}
goCounter();