four simultaneous touch inputs in android

I want to write a script so that my scipt can handle four touch inputs at a time.Also when a touch is released, script should return name of the gameobject from which the touch is released so that appropriate action be taken against that gameobject.

Use the Touch class.

There one problem, not all devices support 4 touches, and the touch class doesnt make difference between touches, so you can get all touches and then only take care for the first 4