A counting mechanism for timepiece having a bidirectional step by step motor, in which the rotor of the said motor cooperates directly with a counting wheel in such a way as to drive it only in one direction, this counting wheel being submitted to the action of a magnet which determines, at each step, its position while cooperating successively with each tooth of its toothing.