he receive the title of count of guimaraes that in soon was raised to duchy