If it's a 4 digit code, you have 10,000 tries. That sounds like a lot, but it takes less time than you'd think. I cracked a small safe I had used as a teen. I had forgot the 3 digit code. It took me less than an hour to get to 747.
Sent from my ancient but trustworthy iPhone 5