Sort:  

counting waves precisely.