Sunstar Lightsmith’s ability will count any spells you’ve cast this turn, which may include Sunstar Lightsmith itself. It doesn’t matter if the other spells resolved, didn’t resolve, were countered, or are still on the stack. If Sunstar Lightsmith was the first spell you cast this turn, the next spell you cast this turn is your second spell.

Artwork
Loading artwork…
Sunstar Lightsmith
Edge of Eternities · #42 · EN
Nonfoil—Foil—
Card rules
Whenever you cast your second spell each turn, put a +1/+1 counter on this creature and draw a card.
3/3
She forges blades of incandescence and quenches them in pitch darkness.
Uncommon · Illustrated by Jarel Threat
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
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Sunstar Lightsmith’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.