If Bone Devourer has +1/+1 counters put on it, and then enough -1/-1 counters are put on it to cause its toughness to be 0, X is equal to the number of +1/+1 counters it had at the time those -1/-1 counters were put on it.

Artwork
Loading artwork…
Bone Devourer
Tarkir: Dragonstorm Commander · #26 · EN
Nonfoil—Foil—
Card rules
Flash
Flying
This creature enters with a number of +1/+1 counters on it equal to the number of creatures that died this turn.
When this creature dies, you draw X cards and you lose X life, where X is the number of +1/+1 counters on it.
2/2
Rare · Illustrated by Diana Franco
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions