drc: fix cycle counting, make it use single var