[P3]Count brackets.