A nebulizer (1) is proposed which comprises an insertable container (3) and a counter device (23) for counting operations of the nebulizer. The nebulizer can be opened for replacing the container. A securing device (32) prevents reconnection of an already used container. The nebulizer shows the current container number and alternately symbols indicating container replacement. A control member controls a lock (34) of the nebulizer. The lock is resetted by container replacement.