What is the easiest way to count of ui sortable elements?
<ul id="sortableList">
<li class="nosort"></li>
<li>item 1<li>
<li>item 2<li>
<li class="nosort"></li>
<li>item 3<li>
</ul>
Since i have already performed DOM elemens selection
(>:not(.nosort)) in options of sortable function
$("#sortableList").sortable({
items: ">:not(.nosort)"
may i use ui.item somehow to count?