optimize compiler by reset temp var count for every statement