How can I create an automatic numerical progression in HTML …?

HI!!

How can I create an automatic numerical progression from 0 to 500,000 in html?

The code I was given is this:

<p><span style="font-family: Calibri, sans-serif;"><span style="text-shadow: rgba(255, 255, 255, 0.8) 0px 3px 2px;"><sup>437</sup></span></span></p>

how can i make the code progressive and automatic every three minutes?

The progression I have to make it for the university I am still a beginner. Help me !!! Thanks for the reply :)