Devices found in Sanskrit literature such as frame stories and animal fables are seen by some scholars as lying at the root of the conception of the "Nights". The motif of the wise young woman who delays and finally removes an impending danger by telling stories has been traced back to Indian sources. Indian folklore is represented in the "Nights" by certain animal stories, which reflect influence from ancient Sanskrit fables. The influence of the "Panchatantra" and "Baital Pachisi" is particularly notable. "The Jataka Tales" are a collection of 547 Buddhist stories, which are for the most part moral stories with an ethical purpose. "The Tale of the Bull and the Ass" and the linked "Tale of the Merchant and his Wife" are found in the frame stories of both the "Jataka" and the "Nights".