how to calculate cycle count - Search