Donald Trump is one of the least popular presidents to be inaugurated in modern history, according to several national polls. With that in mind, it was no wonder there were already online tickers counting down the days left in his presidency.

All of that was assuming he stays in office all four years of his term, of course. But what if Trump resigns, is impeached, or, well, suffers a worse fate?

It’s not unheard of; two presidents each had terms lasting less than a year.

Take William Henry Harrison, who had the shortest presidency in history. He took his oath of office and became the ninth president on March 4, 1841. He was 68 years old at the time — the oldest commander-in-chief until Trump, who’s 70, stole that record.

Trump’s inaugural address was much shorter than Harrison’s, though. Back in 1841, the new president’s speech took two hours, and he delivered the address without wearing a coat or a hat — in cold January temperatures. Later on that month, Harrison caught a cold that developed into pneumonia.

He died in April of that year, his entire presidency lasted 31 days.

James Garfield’s presidency lasted a few months longer, but he didn’t pass away from illness. He was assassinated.

Garfield, America’s 20th president, was inaugurated in March of 1881. He was shot in the back on July 2, 1881 by a man named Charles Guiteau. The assassin was a drifter, and he was reported to have planned the attack meticulously. He carried a note in his pocket that read:

“The president’s tragic death was a sad necessity, but it will unite the Republican Party and save the Republic. Life is a fleeting dream, and it matters little when one goes.”

Garfield, a Republican, spent the next few months under the care of doctors, but to no avail. He died Sept. 19, 1881. He spent 200 days in office.

The record for the longest presidency, on the other hand, belongs to Franklin Delano Roosevelt, the only U.S. president to serve more than two terms.

Roosevelt became president in 1933 and inherited the Great Depression, an enormous financial mess that left many struggling to find food and shelter. His New Deal policies created government work for many who suddenly found themselves unemployed. And his fireside chats, when he’d address the country over radio, endeared him to many in the country. Americans voted him into office for four terms.

But Roosevelt died during his fourth term, in April 1945, when he suffered a stroke. Roosevelt was in office for 4422 days, or just over 12 years.

But that won’t happen again. In 1947, Congress passed the 22nd Amendment, which limited a president’s time in office to two terms.