lib: fix track count in get_track_from_id()