Total number of major-specific courses for BS and PhD in STEM at U.S. universities

In physics, at least, it’s sometimes said that a thesis is written with a stapler. That is to say, the student publishes a handful of papers, and then staples them together and calls it a thesis (usually with a little extra writing to connect the topics together).