Is there any afl to count waves in a given period?I want to use it to count how many uptrend and downtrend of a index in history. Thanks.