A counter for a handheld device for dispensing a pharmaceutical substance includes at least one counter wheel having legible characters. The counter wheel is rotatable about a rotational axis, and a drive part having a shaped engagement section rotates the counter wheel. An acting part, displaceable relative to the counter wheel in the direction of extension of the rotational axis against a spring force, is connected to and rotates together with the drive part. A base part which can form a part of the housing and can be inserted into the housing at least partly overlaps the substance container in the direction of the longitudinal axis of the substance container, and has a stationary rotational axis for the counter wheel, the drive part preferably being guided in the rotational axis. The drive part is located on the side of the substance container with respect to the counter wheel.