Adding license and count_magnitudes example