You can utilize the COUNT function to debug your program for the following purposes:
To check all the routes the program follows:
The listings generated by the COUNT function shows how many times statements were actually executed. This information allows you to check all the possible routes your program would follow.
To improve the efficiency of your program
The listings generated by the COUNT function shows the percentage of execution counts for each statement and the percentage of verb execution counts by program unit. This enables you to identify frequently used portions of your program. Optimizing these portions will allow you to improve the efficiency of your program.