Hinduism is the religion native to South Asia, inheriting the Brahmanism of the Vedic age and absorbing folk and non-Vedic traditions — shaped step by step between the second century BC and the fourth century AD by the Mahabharata, the Ramayana and the Puranas, its classical form standing by the Gupta Empire. It has no single founder or one church: Brahma, Vishnu and Shiva as chief gods, karma and rebirth, dharma and moksha the core ideas, the scriptures vast and the sects many. From about the sixth century the Bhakti wave, born in the south, swept the land through the temples and wandering teachers of the Chola Empire and beyond, becoming the mainstream of South Asian religious life in the middle ages. Under the Delhi Sultanate and the Mughal Empire, Islam (Islam) was the faith of the ruling class, while Hinduism endured on its temple networks and the social frame of caste (caste). Today Hindus number about a billion, concentrated in India and Nepal — the world's third largest religion.