enchant creature
enchanted creature has "whenever another creature dies, put a +1/+1 counter on this creature."
when enchanted creature dies, look at the top x cards of your library, where x is its power. put one of those cards into your hand and the rest on the bottom of your library in a random order.