Station Monitor’s ability resolves before the spell that caused it to trigger. It resolves even if that spell is countered or otherwise leaves the stack without resolving.

Artwork
Loading artwork…
Station Monitor
Edge of Eternities · #230 · EN
Nonfoil—Foil—
Card rules
Whenever you cast your second spell each turn, create a 1/1 colorless Drone artifact creature token with flying and "This token can block only creatures with flying."
2/2
"Keeping tabs on a whole station is too much for just one."
Uncommon · Illustrated by Camille Alquier
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Station Monitor’s ability will count any spells you’ve cast this turn, which may include Station Monitor itself. It doesn’t matter if the other spells resolved, didn’t resolve, were countered, or are still on the stack. If Station Monitor was the first spell you cast this turn, the next spell you cast this turn is your second spell.