An accelerometer is a gyro.
Peter, that is not correct. They are completely different devices.
The iPhone has always had three accelerometers. Starting with the iPhone 4, a MEMS (microelectromechanical system) gyro was introduced.
For more information and some fascinating electron microscope images, see here:
iPhone 4 Gyroscope Teardown - iFixit