According to the Charaka Samhita, one of the orignial Ayurvedic texts(at least 5000 years back), there are 20 types of worms which cause disease.Dased on habitat, they are categorized into 4 groups which grow in feces, mucous, blood and non-fecal excreta.