Do traded Pokemon count as caught Pokemon?
Yes, traded Pokémon will count towards the medals. I tested this with a friend and the count for the medals increased after the trade.
However, you cannot trade the Dratini back and forth in this manner. Once a Pokémon has been traded, it cannot be traded again.
Niantic Support
Pokémon that have previously been traded once before cannot be traded.