Counting, scheduling, or event timing