The value of X is calculated only once, as Lasyd Prowler’s renew ability resolves.

Artwork
Loading artwork…
Lasyd Prowler
Tarkir: Dragonstorm · #149 · EN
Nonfoil—Foil—
Card rules
When this creature enters, you may mill cards equal to the number of lands you control.
Renew — 1
, Exile this card from your graveyard: Put X +1/+1 counters on target creature, where X is the number of land cards in your graveyard. Activate only as a sorcery.
5/5
Rare · Illustrated by Anna Pavleeva
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If you don’t have at least as many cards in your library as lands you control when Lasyd Prowler’s first ability resolves, you can’t choose to mill that many cards.
If a card with a renew ability is put into your graveyard during your turn, you can activate that ability if it’s legal to do so before any other player can take any actions.