replaced hard-coded number of tracks with sizeof

This replaces the hard-coded '6' with the usual sizeof magic, which is
an important improvement to ease further releases with a different
number of tracks ;-)

Cherry-picked and squashed from #28

Signed-off-by: Philipp A. Hartmann <pah@qo.cx>