Animated coutUp a promise object return DB query,filter

Hello,
I have a backend shop DB[wix default] and I create a custom collection with backend DB data by csv. I query new DB with filter and
got a promise object which is total number of rows[getTotalCout()].
I want to animation count this number and display on page.
Most example countUp I got like start,end,interval and setinterval() , countUp, but this isn’t fulfil my wish. Below my code
How can I solve this issue?

Just some LINKS for you…
https://community.wix.com/velo/forum/coding-with-velo/how-to-create-animated-number

https://community.wix.com/velo/forum/coding-with-velo/how-to-make-an-animated-number-counter

https://community.wix.com/velo/forum/coding-with-velo/how-to-make-an-animated-number-counter-1

https://community.wix.com/velo/forum/coding-with-velo/animated-numbers-animation-problem

hello, want to countUp stop just my rows number 38.