By changing the integer value you can decide how much numbers should be generated. The object transform output isn't really necessary. I just put it in that you can see the numbers.
Note: Animation nodes is so friendly, it even puts the resulting texts
in an own collection, which you can use in GN.
So here you see a combination of GN + AN.
Because AN is executed automatically, every change in AN will reflect in GN.
So i distributed the numbers on a cube randomly, and as you can see, if i change the number of numbers, it will be changed in GN too.