trying counting cycles