Step 1Heat the oven to 375 degrees and butter a 9-by-13-inch baking dish. In a medium saucepan, combine the milk, rosemary, thyme, sage and black pepper. Heat over high heat until just before the milk reaches a simmer. Remove from the heat and allow to cool slightly.
Step 2Heat the butter in a large skillet over medium heat, whisking occasionally until melted and the solids turn golden brown, 4 to 5 minutes. Add the corn and salt and stir over low heat for about 2 more minutes. Remove from the heat and set aside.
Step 3In a large bowl, whisk the eggs. Whisk in the cooled milk and then stir in the bread, cheese and the corn mixture until well combined. Pour the mixture into the baking dish, pressing down on the bread to make sure it is submerged. Let the mixture sit for about 15 minutes while the bread absorbs the liquid.
Step 4Bake for 35 minutes, until golden brown, rotating once for even cooking. Serve immediately.