PROBLEM TO BE SOLVED: To provide a device for counting the number of medicines in a medicine packaging envelope which can surely count the number of medicines in the medicine packaging envelope irrespective of a size of an information identification portion constituted of a character, a graphic pattern or the like indicated on the medicine packaging envelope.SOLUTION: The device for counting the number of medicines in a medicine packaging envelope which counts the number of medicines sealed in a pouch portion of the medicine packaging envelope, wherein the pouch portion is formed by sealing peripheries of sheets which allow the transmission of near infrared rays therethrough in an overlapping manner, and the overlapped sheets includes an information identification portion, the device for counting the number of medicines includes: an illumination part which is configured to irradiate near infrared rays toward a sheet surface of the medicine packaging envelope an imaging part which is arranged at a position where the near infrared rays which pass through the medicine packaging envelope are received, and is configured to image the medicine packaging envelope and a medicine counting unit which is configured to count the number of medicines based on a gray image from the imaging part, wherein the imaging part includes a visible light cut filter in a light receiving part thereof, and the visible light cut filter is configured to prevent a reflection light which is formed by the reflection of the visible light on the medicine packaging envelope from being incident on the imaging part.COPYRIGHT: (C)2012,JPO&INPIT【課題】薬包に表示された文字や図形等からなる情報識別部の大きさによることなく、確実に薬包中の薬剤個数を計数可能な薬包内の薬剤個数計数装置を提供する。【解決手段】近赤外光を透過させるシートを重ね合わせた状態で周辺が封止されてなる袋部を有する薬包であって、前記シートに近赤外光を透過させる情報識別部を含む薬包、の前記袋部に封入された複数の薬剤の個数を計数する薬包内の薬剤個数計数装置において、前記薬包のシート面に向かって近赤外光を照射する照明部と、前記薬包を透過した前記近赤外光を受光する位置に配置されて前記薬包を撮像する撮像部と、前記撮像部からの濃淡画像に基づいて前記薬剤の個数を計数する薬剤計数手段とを備え、前記撮像部は、その受光部に可視光カットフィルタを備え、前記可視光カットフィルタは、可視光が前記薬包で反射される反射光の前記撮像部