When this creature enters play, it gains 1 energy for each rarity among Machines either on your field or in your graveyard.