Multi-wavelength surveys: object detectability an nIR luminosity function of galaxies