If Demigod of Revenge is countered *before* its triggered ability resolves, the ability will still resolve. It will return that Demigod of Revenge from your graveyard to the battlefield, as well as any others. If you’re casting a spell to counter Demigod of Revenge, it’s important to clarify you’re casting it *after* the triggered ability resolves if you don’t want that Demigod of Revenge to be put onto the battlefield.