William II , count of both Holland and Zeeland , gave Nijmegen in use to Guelders in return of a loan . On separate occasions the bishop of Utrecht gave the Veluwe and William II , who was count of both Holland and Zeeland and who was elected anti-king of the Holy Roman Empire ( 1248-1256 ) , gave Nijmegen in use to Guelders in return of a loan .