That means that, while Barack Obama and Donald Trump will have been in office for the same number of years, Obama is the 44th president, and Trump will be both the 45th president and the 47th.