Is there a way to find out how many items are in a playlist?

oeeee's icon

I want to play videos in jit.playlist randomly. I want the random argument to update automatically whenever a new video is added or removed, without manually adjusting it. How can I find out how many items are in the playlist?

playlist length.maxpat
Max Patch


Source Audio's icon

look into help file / tab dictionaries