added new option to count program statistics and new timing options