This feels underspecified:
clearly Sarah is not counting 1, 2, 3, ... (infinitely many numbers go here), infinity; so she's doing something else; but there are quite a lot of something-elses that she could do, and all of them are kinda cheaty, and the question here is what specific kinda-cheaty thing she did.
Here are a few possibilities. One:
She wrote numbers down on their sides, starting at 1 and proceeding as far as 8. An 8 on its side looks very much like the usual mathematical symbol for infinity.
Two:
She started from, let's say, "infinity minus 100" and counted up. (There are in fact number systems in which something a bit like "infinity minus 100" is an actual number.)
Three:
She counted down from, let's say, "infinity plus 100". (You can do something like that in the surreal numbers, mentioned above, but also in other simpler systems such as the ordinal numbers.)
Four:
She started counting normally, and at some point went "... and so on; infinity." I personally wouldn't (ahahaha) count that as counting to infinity, but then I don't think I'd count anything as counting to infinity other than the thing she obviously didn't do.
Five:
Sarah is able to count arbitrarily fast (maybe she's an archangel or something, not a human) and she said each number twice as quickly as its predecessor; after twice the time it took her to say "one", she had named all the positive integers and then said "infinity".
Apparently that last one is what the OP had in mind. Here are some more details.
Suppose it takes her two seconds to say "one", and then each new number is said 0.5% faster than the previous one -- so the next number takes 1.99 seconds, the next just over 1.98 seconds, etc. Then counting all the positive integers takes $2\left(1+\frac{199}{200}+\left(\frac{199}{200}\right)^2+\left(\frac{199}{200}\right)^3+\cdots\right)$ seconds, which equals $\frac2{1-\frac{199}{200}}$ or 400 seconds. This gives Sarah plenty of time to take a big breath and add "infinity", all within ten minutes.