/Engine/Source/Runtime/InteractiveToolsFramework/Public/ToolBuilderUtil.h
Count number of selected components that pass predicate. If Component selection is not empty, returns that count, otherwise counts in all selected Actors
namespace ToolBuilderUtil { INTERACTIVETOOLSFRAMEWORK_API int ToolBuilderUtil::CountComponents ( const [FToolBuilderState](API\Runtime\InteractiveToolsFramework\FToolBuilderState) & InputState, const [TFunction](API\Runtime\Core\GenericPlatform\TFunction)< bool([UActorComponent](API\Runtime\Engine\Components\UActorComponent) *)> & Predicate ) }