Anyone here with some building code smarts that could answer a question for me??

We have an electric cooktop in our kitchen, but are contemplating switching it to gas. I was wondering if there are any code requirements regarding minimum distance for a gas burner to a wall - the existing cooktop is adjacent to the oven and I wasn't sure if that might present any code problems.

Also wondering how much I might expect to have a plumber/tech type install a gas line. They could T off the gas to the furnace in the attic (which is directly over the kitchen) and then drop the line down the wall behind the existing stove. I don't *think* it would be a complex/complicated effort, but I wasn't sure. Heck, I could probably do it, but I think that kind of project is best left to someone who is familiar with dealing with gas lines and such. Really don't want to do something wrong and blow up my house LOL