The invention relates to an apparatus for trapping harmful flying insects comprising: a device (1) for diffusing a gaseous attractant cocktail, the composition of which is adapted to attract insects, a suction device (2) having an orifice suction (220) of an air stream containing the insects attracted by the diffused attractant cocktail, a trap arranged with the suction device (2), a frame (4) enclosing a source of gas, which gas is a constituent of the gaseous attractant cocktail, characterized in that the optical insect counter comprises a series of parallel deflectors (30) installed across the suction port (220), a light barrier composed of an emitter light (31) and a light receiver (32) being installed in each gap between said baffles.L'invention concerne un appareil pour prendre au piège des insectes volants nuisibles comprenant : un dispositif de diffusion (1) d'un cocktail attractif gazeux dont la composition est adaptée pour attirer les insectes, un dispositif d'aspiration (2) présentant un orifice d'aspiration (220) d'un flux d'air contenant les insectes attirés par le cocktail attractif diffusé, un piège agencé avec le dispositif d'aspiration (2), un châssis (4) renfermant une source de gaz, lequel gaz est un constituant du cocktail attractif gazeux, se caractérisant par le fait que le compteur optique d'insectes comprend une série de déflecteurs (30) parallèles installés en travers de l'orifice d'aspiration (220), une barrière lumineuse composée d'un émetteur de lumière (31) et d'un récepteur de lumière (32) étant installé dans chaque intervalle entre lesdits déflecteurs.