Added ability to count successors