Dispenser for discharging pharmaceutical media, with - a liquid reservoir, - a base body, - an actuating handle which is manually displaceable with respect to the base body in order to cause a process involving discharge of medium from the liquid reservoir into an environment, and - an electronic detection system for detecting discharge processes, wherein the detection system has: - a sensor which generates an output signal depending on the displacement of a reference component that is mechanically coupled to the actuating handle such that it is displaced with respect to the base body during a discharge process, wherein the sensor is configured to generate output signals of at least two distinguishable types as a function of the extent of the displacement, and - an electronic calibration memory, in which calibration data concerning the discharge behavior of the dispenser are stored, which data represent individual peculiarities of the dispenser in respect of its behaviour in reaction to a displacement of the actuating handle, wherein - the detection system has an evaluation device for processing the output signals, which evaluation device evaluates the discharge process by taking account of the type of the output signals, - the evaluation device is configured as a counting device which evaluates the discharge process by taking account of the type of the output signal and taking account of data stored in the calibration memory, and - wherein the dispenser is configured to carry out an operating method in which, upon actuation of the dispenser, a. the extent of the displacement of the reference component with respect to the base body is detected by the sensor, b. the actuation is categorized by comparing the extent of the displacement with data from the calibration memory, and c. a counting process is performed or not performed, depending on the categorization. - a liquid reservoir, - a base body, - an actuating handle which is manually displaceable with respect to the base body in order to cause a process involving discharge of medium from the liquid reservoir into an environment, and - an electronic detection system for detecting discharge processes, - a sensor which generates an output signal depending on the displacement of a reference component that is mechanically coupled to the actuating handle such that it is displaced with respect to the base body during a discharge process, wherein the sensor is configured to generate output signals of at least two distinguishable types as a function of the extent of the displacement, and - an electronic calibration memory, in which calibration data concerning the discharge behavior of the dispenser are stored, which data represent individual peculiarities of the dispenser in respect of its behaviour in reaction to a displacement of the actuating handle, - the detection system has an evaluation device for processing the output signals, which evaluation device evaluates the discharge process by taking account of the type of the output signals, - the evaluation device is configured as a counting device which evaluates the discharge process by taking account of the type of the output signal and taking account of data stored in the calibration memory, and - wherein the dispenser is configured to carry out an operating method in which, upon actuation of the dispenser, a. the extent of the displacement of the reference component with respect to the base body is detected by the sensor, b. the actuation is categorized by comparing the extent of the displacement with data from the calibration memory, and c. a counting process is performed or not performed, depending on the categorization. a. the extent of the displacement of the reference component with respect to the base body is detected by the sensor, b. the actuation is categorized by comparing the extent of the displacement with data from the calibration memory, and c. a counting process is performed or not performed, depending on the categorization.