Gadrak's last ability counts creatures that died during the entire turn, even ones that died before Gadrak entered the battlefield.

Artwork
Loading artwork…
Gadrak, the Crown-Scourge
Tarkir: Dragonstorm Commander · #214 · EN
Nonfoil—Foil—
Card rules
Flying
Gadrak can't attack unless you control four or more artifacts.
At the beginning of your end step, create a Treasure token for each nontoken creature that died this turn. (It's an artifact with "
, Sacrifice this token: Add one mana of any color.")
5/4
Rare · Illustrated by Daarken
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future 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
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Once Gadrak has attacked, it will remain an attacking creature even if you no longer control four or more artifacts.