608.2c The controller of the spell or ability follows its instructions in the order written. [...]
First, you put the tokens into play. The game realizes that Soul Warden's trigger event happened. The next time someone would get priority, all triggered abilities will be put on the stack (after Martial Coup finished resolving).
Now, assuming X was 5 or higher, all other creatures are destroyed, including Soul Warden.