How many Stephen King novels have characters who are writers?

In nineteen Stephen King's novels there's a character who is a writer. King uses writers in his novels quite often because he knows which kind of problems writers may run in the writing process.