Otto Wilhelm von Königsmarck (1639-88), greve, härförare