<script> var temp = document.getElementById('licount'); var linum = temp.getElementsByTagName("li").length</script>