In a Two-Headed Giant game, life gained by your teammate won't cause Qala's second ability to trigger, even though it caused your team's life total to increase.

Artwork
Loading artwork…
Qala, Ajani's Pridemate
Foundations Jumpstart · #32 · EN
Nonfoil—Foil—
Card rules
Whenever Qala attacks, other attacking creatures you control get +X/+0 until end of turn, where X is the number of counters on Qala.
Whenever you gain life, put a +1/+1 counter on Qala.
3
: You gain 1 life.
3/3
Uncommon · Illustrated by Yoshiya
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Oathbreaker Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Qala's second ability triggers just once for each life-gaining event, whether it's 1 life from Dazzling Angel or 4 life from Apothecary Stomper.
The value of X is calculated only once, as Qala's first ability resolves.
If you gain an amount of life "for each" of something or "equal to the number" of something, that life is gained as one event and Qala's second ability triggers only once.
If Qala is dealt lethal damage at the same time that you gain life, it won't receive a counter from its second ability in time to save it.
Each creature with lifelink dealing combat damage causes a separate life-gaining event. For example, if two creatures you control with lifelink deal combat damage at the same time, Qala's second ability will trigger twice. However, if a single creature you control with lifelink deals combat damage to multiple creatures, players, planeswalkers, and/or battles at the same time (perhaps because it has trample or was blocked by more than one creature), the ability will trigger only once.