Can't you use a count of the subitems?