Thanks for the detailed report, WhiteRabbit1981!
FYI, in cases where more info is needed to determine if something is a bug or not, it is
immensely helpful if you can state the game id of the game in question. But in this case, what you copied from the log was enough.
QuoteW plays a Magic Lamp. (+$1)
W trashes a Magic Lamp.
Note that Magic Lamp
trashes itself when it finds enough (6+) unique cards:
(https://i.imgur.com/PEnd37n.png)
In other words, the Magic Lamp being trashed had nothing to do with Counterfeit's trashing, the scenario would have played out the same if the Counterfeit was a Crown, for example.
So in your scenario, there are actually 2 reasons why you can't gain 3 Wishes the second time:
1) The way you wrote it, the Magic Lamp was the 6th unique card in play. When it is played a second time, it is itself no longer in play, so it finds only 5 unique cards now, so doesn't grant Wishes.
2) The Wishes being granted is
also contingent on the "If you do" clause, referring to the card being trashed (see card text above). On the second playing, you didn't trash the Magic Lamp, so no Wishes.
Reason 1) can of course be circumvented by having more unique cards, but reason 2) will always "kill" this combo. In fact, those wordings are usually made to do exactly that: Prevent certain "one shot" cards to be exploited by "play something multiple times" cards (Counterfeit here, usually Throne Room for Actions).