How many warm up sets before you get to the 5x5.

I've found it takes 2 or even 3. So, it's more than 5 sets. How about counting the two sets it takes to get to the strength training weight, so it's 2x the warm up weights + 3x5 strength sets?

There are diffrent methods of 5x5. I warm up with a set of 10 reps then i hit a weight for 5 reps. My last set i put more weight on the bar and do maybe 3 reps. my Goal is to hit that last set for 5