adding time counter