There were 9. George Washington, Thomas Jefferson, James Madison, John Quincy Adams, William Henry Harrison, Abraham Lincoln, Theodore Roosevelt, Woodrow Wilson, and Franklin D. Roosevelt.
Obama makes 10. President Obama was home educated for several years by his mother who woke him up early to teach him before going off to work. This is documented in at least 1 of his books and also mentioned in the speech he gave to public school students a few years ago.