In the case of Event, the most efficient way of retriving the number of track is to use event.fNtrack. There is very little difference from calling event->GetNtrack() and tracks->GetEntries(). Technically tracks->GetEntries() is probably more efficient in some case because you could get away with just loading the track branch.