Question: do thoughts count as dialogue?
Answer: Never use quotation marks for thoughts, even if those thoughts are inner dialogue, a character talking to himself. Reserve quotation marks for speech that's vocalized. Readers should be able to tell when a character is speaking inside his head and when he's talking aloud, even if he's the only person in the scene.