added pruning counter