/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemComponent.h
Get the count of the specified source effect on the ability system component. For non-stacking effects, this is the sum of all active instances. For stacking effects, this is the sum of all valid stack counts. If an instigator is specified, only effects from that instigator are counted.
Count of the specified source effect
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, BlueprintPure, Category=GameplayEffects) int32 GetGameplayEffectCount_IfLoaded ( [TSoftClassPtr](API\Runtime\CoreUObject\UObject\TSoftClassPtr)< [UGameplayEffect](API\Plugins\GameplayAbilities\UGameplayEffect) > SoftSourceGameplayEffect, [UAbilitySystemComponent](API\Plugins\GameplayAbilities\UAbilitySystemComponent) * OptionalInstigatorFilterComponent, bool bEnforceOnGoingCheck ) const