GH: Added the wave counter.