def _fake_run_horcmstart3(*args):
 global run_horcmstart3_cnt
 run_horcmstart3_cnt = (run_horcmstart3_cnt + 1)
 return (0 if (run_horcmstart3_cnt <= 1) else 3)

def _fake_run_horcmstart3 ( * args ) : global run_horcmstart3_cnt run_horcmstart3_cnt = ( run_horcmstart3_cnt + 1 ) return ( 0 if ( run_horcmstart3_cnt <= 1 ) else 3 )
update a counter and return a value based on it .