Duration counter