The value of X is locked in as the first ability resolves. The bonus it grants won't change after that point, even if the number of Rats you control does.

Artwork
Loading artwork…
Ashcoat of the Shadow Swarm
Jumpstart 2022 · #19 · EN
Nonfoil—Foil—
Card rules
Whenever Ashcoat attacks or blocks, other Rats you control get +X/+X until end of turn, where X is the number of Rats you control.
At the beginning of your end step, you may mill four cards. If you do, return up to two Rat creature cards from your graveyard to your hand. (To mill a card, put the top card of your library into your graveyard.)
3/4
Mythic · Illustrated by Christina Kraus
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Oathbreaker Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future 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
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You choose which Rat creature cards to return to your hand as the last ability resolves. You may choose Rat creature cards milled with this ability.