UAbilitySystemComponent::GetNumActiveGameplayEffects

Returns the number of gameplay effects that are currently active on this ability system component