Added counts-for-budget functionality in the BinaryTreeCounts factor; allow potentials for counts of internal nodes.