Stanford is absolutely a research university in the truest sense of the world. There have been 31 Nobel laureates on the staff as well as 19 winners of the Turing award. It's also worth pointing out that the CS department, though important, comprises a small minority of faculty and students on campus. There are lots of professors and grad students doing research in archaeology, physics, medicine, classics, materials science, etc. who most people hear little of.