The value of X is determined as Loot's last ability resolves.

Artwork
Loading artwork…
Loot, the Key to Everything
The Big Score · #21 · EN
Nonfoil—Foil—
Card rules
Ward 1
At the beginning of your upkeep, exile the top X cards of your library, where X is the number of card types among other nonland permanents you control. You may play those cards this turn.
1/2
The vault's ultimate prize wasn't exactly what Kellan had imagined.
Mythic · Illustrated by Rudy Siswanto
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
Standard Legal
Standard Brawl 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
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You pay all costs and follow all normal timing rules for cards played from exile with Loot's last ability. For example, if the exiled card is a land card, you may play it only during your main phase while the stack is empty.
The card types that could appear among your nonland permanents are artifact, battle, creature, enchantment, kindred, and planeswalker.
Lands are disregarded when calculating the value of X. For example, if you control an artifact land but no other artifacts, artifact won't count toward the value of X.