Add the butter to the pan and allow it to melt. Over medium heat, add the corn, salt, and pepper and cook, stirring occasionally, for 5 to 7 minutes, until the corn just loses its starchiness. Season to taste, gently stir in the basil or other green herbs, and serve hot.