Split a String in Balanced Strings

给一个string s, 问能分割成多少平衡的string. 平衡的string就是l和r数量一样多. counting问题.