One-liner to count number of notes in previous two chords, but it's a bit long.
Cleaning up sample_data function.
Deviating from Tuohy a bit.