JSFiddle - React, Tailwind, and code Playground

HTML

<div class="count"></div>

<div class="i-want">
    This is my desired output:<br/>
    22,000,000,000
</div>

CSS

.i-want { margin-top: 20px; }

JavaScript

var counter=22000000000;
	if(typeof(localStorage.getItem('counts'))!='object') {
	   counter=parseInt(localStorage.getItem('counts'));
	}
	$(".count").html(counter);
	setInterval(function () {
	    $(".count").html(counter);
	    ++counter;
	    localStorage.setItem('counts',counter);
	}, 18000);