How Many Times Can I enter a Iphone password?

I forgot my password and I restoring isn't an option, so I need to know how many more tries I can type in before getting a heart attack.

Only 5 times, not more than that

please check this link
http://support.apple.com/.../kb/ht1212
you will get complete details

If you put the wrong password in on your iPhone more than five times it will lock. The first time it will lock for about one minute. If you try your password again another five times it will lock for longer. If you continue to put your password in wrong, it will completely lock. Once it has locked completely, you will not be able to use it at all.

After 10 times, your iphone will be locked.
And every time you input the code, the waiting time will be longer.
If you still forget the code, you should connect to iTunes to restore the backups.