Why is the iPhone 4 called the iPhone 4?

It is the 4th model of iPhone. But iPhone generations do not go from one up:
1. iPhone
2. iPhone 3G (because of 3G connection)
3. iPhone 3GS
4. iPhone 4.
5. iPhone 4S