Java Program to count matching paranthesis
<p>I want to write a program to count the number of matching paranthesis. Can anyone know how to write it?
For ex. Input ((This is )((a test)
        Output=2</p>
