A nebulizer (1) is proposed which comprises an insertable container (3) and a counter device (44) for counting operations of the nebulizer (1). The nebulizer (1) can be opened for replacing the container (3). The counter devices (44) blocks opening of the nebulizer (1) until a predetermined number for operations has been reached.