Adding register counter.