Convert binary tree traversals to forest count | Bitkernel