If the target of The Doctor's ability is illegal as it tries to resolve, it won't resolve and none of its effects will happen. You won't put any counters on any creatures.

Artwork
Loading artwork…
The Doctor, EMH
Star Trek · #234 · EN
Nonfoil—Foil—
Card rules
When The Doctor enters, put a +1/+1 counter on target creature. Then put a +1/+1 counter on each creature you control with a counter on it.
3/3
"Please state the nature of the medical emergency."
Uncommon · Illustrated by David Robert Hovey
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions