How many years does it take to get a PhD in history?

In general, four years of undergraduate and four years of graduate course work.