The ability that defines Lord of Extinction's power and toughness works in all zones, not just the battlefield. If Lord of Extinction is in your graveyard, it will count itself.

Artwork
Loading artwork…
Lord of Extinction
Tarkir: Dragonstorm Commander · #295 · EN
Nonfoil—Foil—
Card rules
Lord of Extinction's power and toughness are each equal to the number of cards in all graveyards.
*/*
The forlorn cries of the dead combine to make its laugh.
Mythic · Illustrated by Izzy
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If an instant or sorcery spell deals damage to Lord of Extinction or lowers its toughness, that spell is put into its owner's graveyard before state-based actions are performed. That card will raise Lord of Extinction's toughness before the game checks to see if it dies.