Prior to running against Hillary Clinton in the Democratic presidential primary, Sanders served nine years in the U.S. Senate, 16 years in the House of Representatives, and three terms as the mayor of Burlington, Vt. In July, Sanders received 1,843 delegate votes at the Democratic National Convention here in Philadelphia, compared to Clinton's 2,838.