Added max num bins functionality to FactorBinary/GeneralTreeCounts.