The triggered ability will consider the total amount of life you've gained that turn, not how your life total has changed. For example, if you start the turn at 10 life, then gain 5 life, and then lose 7 life, you'll distribute five +1/+1 counters, even though your life total is now lower than it was at the beginning of the turn.
Lathiel, the Bounteous Dawn
If some, but not all, of the creatures are illegal targets as the triggered ability tries to resolve, the original distribution of counters still applies and the counters that would have been put on illegal targets are lost. If all of the creatures are illegal targets, the ability won't resolve.
Gaining more life in response to the triggered ability won't change how many counters will be distributed, nor will it change the distribution.
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Lucas Graciano
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
