Challenge
Given a Youtube playlist, output the number of videos in it.
I/O
The playlist will be given as an URL; for example, https://www.youtube.com/playlist?list=PL_3jnZNPYn7qUatgDYBS5NShkfXoehSRC
(this is a playlist a friend sent me to try to get me to listen to K-Pop because she's obsessed with it and I don't like it :P)
The link to a playlist is of the form https://www.youtube.com/playlist?list=<id>
. The input is the URL, not the ID.
The output is to be a single integer indicating how many videos are in this playlist. You can either output the total number of videos or the number of non-deleted videos, whichever one is more golfy for you.
Test Cases
https://www.youtube.com/playlist?list=PL_3jnZNPYn7qUatgDYBS5NShkfXoehSRC -> 12
https://www.youtube.com/playlist?list=PLIEbITAtGBebWGyBZQlkiMXwt30WqG9Bd -> 114 OR 1
Feel free to add more test cases.