I would assume this to be the case since you cannot un-utter a wish—once you say it, it is counted as a wish before it’s fulfilled.
If the counter is decremented only after the wish is fulfilled, then this means you can go back on wishes because they don’t count until they’re fulfilled, which goes against the lore.
I use Linux to get away from PowerShell 😂 I did try zsh though, it was nice, maybe give it a shot.