jQuery vérifie combien d'éléments enfants
var count = $("#selected ul").children().length;
Weary Wildebeest
var count = $("#selected ul").children().length;