Theres probably a more elegant way, but I think the easiest way would be to set up the counting in groups of three digits.
So you could have three text layers and the comas on separate layers so they aren’t affected. Like:
xxx , xxx , xxx
maybe just loop the first 3 digits going from 0-999 and time the other groups of digits to change accordingly.