Limit number of Touches Detected

I know That this will raycast where all touches are:

for (var i = 0; i < Input.touchCount; i++) {
    if (Input.GetTouch(i).phase == TouchPhase.Began) {
		// Construct a ray from the current touch coordinates
		var touch:Touch = Input.GetTouch(i);
	    var pos:Vector3 = Camera.main.ScreenToWorldPoint (touch.position);
	    var hitInfo:RaycastHit2D = Physics2D.Raycast(pos, Vector2.zero);
}

Is there a way to modify this so that it only detects 2 touches at a time instead of infinite??

var j : int = Input.touchCount;
if (j > 2)
j = 2;
for (var i = 0; i < j; i++) {