How many states were there in the United States of America before the Louisiana purchase?

There were 17 states in the United States when the Louisiana Purchase was made in 1803. Ohio had become the 17th state about a month before the purchase.