int tracksnum = 0;
while (tag.entry != 0x0FFFFFFFF) {
tag = getScanInfoTag(stream);
if (Track.isTrack(tag.entry)) {
tracksnum++;
Track t = new Track();
while (tag.entry != 0x0FFFFFFFF) {
tag = getScanInfoTag(stream);
if (IJ.debugMode)
IJ.log("Tracktag: " + Long.toHexString(tag.entry));