If Jhoira, Ageless Innovator isn't on the battlefield as the activated ability resolves, you won't be able to put any ingenuity counters on it. However, you can still put an artifact card from your hand onto the battlefield. Use the number of ingenuity counters that were on Jhoira before it left the battlefield to determine the value of X.

Artwork
Loading artwork…
Jhoira, Ageless Innovator
Dominaria United · #202 · EN
Nonfoil—Foil—
Card rules
2/3
Rare · Illustrated by Justyna Dura
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