We present the X-ray source number counts in two energy bands (0.5-2 and 2-10 keV) from a very large source sample: we combine data of six different surveys, both shallow wide field and deep pencil beam, performed with three different satellites (ROSAT, Chandra and XMM-Newton). The sample covers with good statistics the largest possible flux range so far: [2.4*10^-17 - 10^-11] cgs in the soft band and [2.1*10^-16 - 8*10^{-12}]cgs in the hard band. Integrating the flux distributions over this range and taking into account the (small) contribution of the brightest sources we derive the flux density generated by discrete sources in both bands. After a critical review of the literature values of the total Cosmic X--Ray Background (CXB) we conclude that, with the present data, the 94.3%, and 88.8% of the soft and hard CXB can be ascribed to discrete source emission. If we extrapolate the analytical form of the Log N--Log S distribution beyond the flux limit of our catalog in the soft band we find that the flux from discrete sources at ~3*10^-18 cgs is consistent with the entire CXB, whereas in the hard band it accounts for only 93% of the total CXB at most, hinting for a faint and obscured population to arise at even fainter fluxes.