added zombie counter function