adding parenthesis Count from david's version