IIRC there isn't a way to coutn the amounts of death of a particular enemy type by default.
However, there IS the dead switch which you can put into a battler's notebox
this will flip to 'true' the moment an enemy of that type is killed (usually done for bosses)
If you want to do scripting, it wouldn't be that difficult to find where the dead switch gets flipped, and have it increment a dead variable instead.
Alternatively, if you're doing eventing, have an event with a page that is triggered only when switch 101 is active. This page will be set to parallel and only do two things: turn switch 101 off, and increment your dead zombies variable. This has the disadvantage that if the player manages to kill two zombies on exactly the same frame it will only count as a single zombie, which may or may not be an issue depending on your battle system (this bug shows up in a few professional games as well)
You can also have all the zombies drop a <zombie Liver> item or whatever, and then check to see how many the player has collected.
Finally, if you just want to kill some number of enemies onscreen, you can invoke
Code:
$gameMap.targetsOnScreen(); //refreshes the list of targets
var enemylist = $gameMap._enemiesOnScreen; //gets the enemies currently onscreen
var numberOfSurvivors=enemylist.length//counts how many there are
And do something when numberOfSurvivors is sufficiently low.