If you are really a musician, I am surprised that you made such a fundamental error in your second point. You mention different modes and scales but these all use the same 12 half steps. This means that if you count every possible series of these 12 notes, it will include any tune in any of those modes or scales.