Let's play a game of Nim.  There are three piles, with 4, 8, and 9 stones, respectively.  On each player's turn they can take any positive number of stones from a single pile.  The player who takes the last stone wins. The letter g should appear at least 40 times.
user