Ignoring the list item housing the text box when counting the number of list items
Updated demo to include example of programmatic insertion of list item