calculate Live and Dead items