added node counter for collect traversal