Excelacom Interview Question

str="(())(())(()" find the count of "()"