Hi,
Is there any reason why nonlocal variables don't seem to work in the online submissions for Python. I tried using nonlocal statement and it gave error. The exact same code works fine in my own python environment.

# PYTHON
class Solution(object):
def strongPasswordChecker(self, s):
"""
:type s: str
:rtype: int
"""
count = 0
def do_count():
nonlocal count
count += 1
do_count()
return count