What is the difference between iPhoneInput & Input ??

It may look like iPhoneInput used for iPhone and Input for desktop/laptop. But what if I want to publish my game in iPhone & android ???

For example consider I want to count how many times the user touches the screen. If I use ‘Input.touchCount’, will it work only in android or work on both android & iPhone ? If it works on both, then what is the difference between iPhonInput.touchCount & Input.touchCount ???

The Unity documentation mentions:

On iOS and Android, the Input class
offers access to touchscreen,
accelerometer and
geographical/location input.

(Taken from 1)

Looking at the IphoneInput, it looks like all of its methods are marked as Obsolete, and redirect you to use the Input class.

In other words, this class shouldn’t be used anymore. Use Input class for all platforms.