refactoring.
remove count_ticks and delta_ticks(,).