How to count li in ul with vanilla javascript

I have found long list on Github Readme and want to count all of li tag that on ul tag by start google search found on Stackoverflow

but so many ul in page how that we get right ul tag

the answer is fairy simple too

with using chrome devtools add id

add id to ul

next use chrome devtools console access element by get id then get tag


here simple result screenshot:

count li in ul