@haejin: Count the subwaves.