Festive Funeral is still on the stack while you determine the value of X. It doesn't contribute to the value of X.

Artwork
Loading artwork…
Festive Funeral
Throne of Eldraine · #87 · EN
Nonfoil—Foil—
Card rules
Target creature gets -X/-X until end of turn, where X is the number of cards in your graveyard.
"Even as we mourn the last, we look to the next with joy. Hopefully, my new suitor will bring the Cauldron home." —Ayara, First of Locthwain
Common · Illustrated by Zack Stella
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School 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
The value of X is determined only as Festive Funeral begins to resolve. The target creature's power and toughness won't change if other cards are put into your graveyard later in the turn.