The efficient way :
Put inside the dead stance of your ennemies:
"+1 to a variable" (Like Chest Opening condition)
"delete this event"
Put that dead stance on parralel and the moment the ennemies is killed the var will increase by 1.
If you want that mob to be able to respawn again if you leave the map, you must also put
"Control Switch Auto B OFF"
Otherwise he would never respawn, (I think it's because of the way the plugin is working)
Then, create your chest event, and put a condition for it to appear based on your Chest opening variable.
Don't forget to put a AUTO switch control B on the chest and then set up a new event page with Auto switch B as condition, or the player may be able to open the chest indefinitly.
I mean, if you have 40 ennemies on the map and you want the player to kill all of them : Just put 40.
If the player can leave the map, be sure to put on the exit a reset to to the counter, otherwise the player would be able to come, kill a monster, leave, come back, etc...
Hope it helped , if you have more question or something you don't understand, ask. (sorry for the bad english)