Update proper_parenthetics.py

reduced number of iterations over count() method. Reduced number of counters.