Add method for determing number of parenthesis combinations