Считайте Li Elements jQuery

$("#mylist li").length
Joynal Abedin