The occurrence of upstream waves in relation with the solar wind parameters: a statistical approach to estimate the size of the foreshock region