You can try to unlock your iPhone up to 10 times before you are required to enter your passcode.