add code counter by python