We have realized a high-detection-efficiency photon number resolving detector at an operating wavelength of about 850 nm. The detector consists of a titanium superconducting transition edge sensor in an optical cavity, which is directly coupled to an optical fiber using an approximately 300-nm gap. The gap reduces the sensitive area and heat capacity of the device, leading to high photon number resolution of 0.42 eV without sacrificing detection efficiency or signal response speed. Wavelength dependent efficiency in fiber-coupled devices, which is due to optical interference between the fiber and the device, is also decreased to less than 1% in this configuration. The overall system detection efficiency is 98%±1% at wavelengths of around 850 nm, which is the highest value ever reported in this wavelength range.