add support for counting size of poisoned nodes