Why Is Cycle Counting Algorithm