public static int countItems(final IItemAdapter adapter,IPredicate predicate){
  return countItems(adapter.getAdapterItems(),true,false,predicate);
}

public static int countItems ( final IItemAdapter adapter , IPredicate predicate ) { return countItems ( adapter . getAdapterItems ( ) , true , false , predicate ) ; }
counts the items in the adapter , respecting subitems regardless of there current visibility
