sentences:  Most "medreses" operated in Budin (Buda), where there were twelve.In Peçuy (Pécs) there were five medreses, Eğri had four.The most famous "medrese" in Ottoman-controlled territory of present-day Hungary was that of Budin (Buda), built by the Serb Mehmed-pasha Sokolović during his seventeen years of governing (1566–1578).