The first ability checks the number you chose for X, not the amount of mana you actually spent.

Artwork
Loading artwork…
Apocalypse Hydra
Battlebond · #217 · EN
Nonfoil—Foil—
Card rules
This creature enters with X +1/+1 counters on it. If X is 5 or more, it enters with an additional X +1/+1 counters on it.
1
, Remove a +1/+1 counter from this creature: It deals 1 damage to any target.
0/0
Rare · Illustrated by Jason Chan
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
For example, if X is 4, Apocalypse Hydra enters with four +1/+1 counters on it, but if X is 5, it enters with ten +1/+1 counters on it.