25 of the 44 presidents have been lawyers; the WSJ law blog has a list. Only one other besides Barack Obama has been a graduate of Harvard Law. It would take a trivia expert (or perhaps a Harvard grad) to identify that one: Rutherford B. Hayes.

P.S. See also, in comments, John Peralta’s list indicating that lawyer-nominees have lately been more common on the Democratic side than the Republican.