How many United States generals became U.S. presidents?

How many United States generals became U.S. presidents?