Increase animation

I am trying to make an animation to make my integer to go from 0-100 but as an animation so it would go 0,1,2,3,4,5,6 quickly till it hits 100.
GIF - https:///d41844b0b40f4b4cca2bb79355466eaf

I have no idea how to do this any ideas? Would it be better to make an animation or to just simply increase my integer using a tick and delay?

try to do an +1 delay +1 delay etc.