The counter will be put on Witchstalker before the spell cast by an opponent resolves.

Artwork
Loading artwork…
Witchstalker
The List · #M14-202 · EN
Nonfoil—Foil—
Card rules
Hexproof (This creature can't be the target of spells or abilities your opponents control.)
Whenever an opponent casts a blue or black spell during your turn, put a +1/+1 counter on this creature.
3/3
Rare · Illustrated by Christopher Moeller
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If an opponent casts a copy of a card that’s blue or black during your turn (as opposed to putting a copy of such a spell directly on the stack), the ability will also trigger. Check for the word “cast” in the effect that creates the copy.