modify script generation program

for Concurrence task
- TS can know how many states in a concurrence container.