When Chthonian Nightmare enters the battlefield, you get EEE (three energy counters).
Pay X E, Sacrifice a creature, Return Cthonian Nightmare to its owner's hand: Return target creature card with mana value X from your graveyard to the battlefield. Activate only as a sorcery.