displays best matching tag sequence
tentatively working code - though some counts are strange