a python code counter