Count Balanced Parentheses In C