The number of sets and reps you should do for compound exercises depends on your goals, fitness level, experience, and recovery ability. However, some general guidelines are:
If your goal is to build strength, you should do 2 to 6 sets of 1 to 6 reps with heavy weights (80-95% of your one-rep max) for compound exercises like squats, deadlifts, bench presses, and overhead presses. You should rest for 2 to 5 minutes between sets to allow for full recovery.
If your goal is to build muscle size, you should do 3 to 6 sets of 8 to 12 reps with moderate weights (65-75% of your one-rep max) for compound exercises. You should rest 60 to 90 seconds between sets to create metabolic stress and muscle damage.
If your goal is to build endurance, you should do 1 to 3 sets of 15 to 20 reps with light weights (50-60% of your one-rep max) for compound exercises. You should rest 30 seconds or less between sets to increase muscular endurance and cardiovascular fitness.
You can also vary the number of sets and reps for compound exercises depending on the phase of your training cycle, such as off-season, pre-season, in-season, and post-season.