Proverbs 24:16-18 (AMP)
“For a righteous man falls seven times, and rises again, But the wicked stumble in time of disaster and collapse. 17 Do not rejoice and gloat when your enemy falls, And do not let your heart be glad [in self-righteousness] when he stumbles, 18 Or the Lord will see your gloating and be displeased, And turn His anger away from your enemy.”
The number of times you fail trying to succeed in life does not really matter. But rather, it is the of times you succeed after you fail trying to come out with that innovation. Never give up just because you are failing. Failure does not map out your future. It is only a sign that you a step away from succeeding big time. So trying till to hit the nail right on the head.