Added comments to wave classes example.
Recursive counting.