De Menezes, Joseph, active 16th century-18th century, Conde de Viana, Master of the Horse to Pedro II