If two targets are chosen, you must choose to give each of them a +1/+1 counter. If only one of those two creatures is still a legal target at the time the spell resolves, it will receive only one counter.