new counter and timer