Counter module for timing the average time of a certain event