Device for counting and dispensing objects, comprising two elements (10, 11) which can be slid relative to one another, - a first element comprising a channel for dispensing objects to be counted and dispensed, said channel extending in the sliding direction, - the second element cooperating with the first element to form two shutters (1A, 1B) delimiting a chamber in the distribution channel adapted to contain a determined number of said objects, said shutters (1A, 1B) being able to adopt, depending on the relative position of said first and second elements: • a chamber opening configuration, in which each shutter defines an orifice of a size suitable for the passage of an object to be counted and dispensed, and • a chamber closure configuration, in which said orifice has a dimension insufficient for the passage of an object, each shutter having two opposing bevelled portions which are not contiguous in said closure configuration, the first and second elements (10, 11) being arranged to provide, by relative sliding, a shutter operating sequence in which: (i) a first shutter is in the opening configuration, while the second shutter is in the closed configuration of the chamber, (ii) the first and second shutters are both in the chamber closure configuration, (iii) the first shutter is in the chamber closure configuration, while the second shutter is in the chamber opening configuration, (iv) the first and second shutters are both in the chamber closure configuration, said device being characterized in that it is adapted to be inserted in a housing comprising a control unit and at least one actuator driven by said control unit, and in that it comprises a latch displaceable by the actuator between a locking state in which said latch partially obturates the dispensing channel, and an unlocking state in which the latch is retracted from the dispensing channel, said latch being configured so that the position of an object present in the chamber is not affected by a change of state of the latch. - a first element comprising a channel for dispensing objects to be counted and dispensed, said channel extending in the sliding direction, - the second element cooperating with the first element to form two shutters (1A, 1B) delimiting a chamber in the distribution channel adapted to contain a determined number of said objects, said shutters (1A, 1B) being able to adopt, depending on the relative position of said first and second elements: • a chamber opening configuration, in which each shutter defines an orifice of a size suitable for the passage of an object to be counted and dispensed, and • a chamber closure configuration, in which said orifice has a dimension insufficient for the passage of an object, each shutter having two opposing bevelled portions which are not contiguous in said closure configuration, • a chamber opening configuration, in which each shutter defines an orifice of a size suitable for the passage of an object to be counted and dispensed, and • a chamber closure configuration, in which said orifice has a dimension insufficient for the passage of an object, each shutter having two opposing bevelled portions which are not contiguous in said closure configuration, the first and second elements (10, 11) being arranged to provide, by relative sliding, a shutter operating sequence in which: (i) a first shutter is in the opening configuration, while the second shutter is in the closed configuration of the chamber, (ii) the first and second shutters are both in the chamber closure configuration, (iii) the first shutter is in the chamber closure configuration, while the second shutter is in the chamber opening configuration, (iv) the first and second shutters are both in the chamber closure configuration, (i) a first shutter is in the opening configuration, while the second shutter is in the closed configuration of the chamber, (ii) the first and second shutters are both in the chamber closure configuration, (iii) the first shutter is in the chamber closure configuration, while the second shutter is in the chamber opening configuration, (iv) the first and second shutters are both in the chamber closure configuration, said device being characterized in that it is adapted to be inserted in a housing comprising a control unit and at least one actuator driven by said control unit, and in that it comprises a latch displaceable by the actuator between a locking state in which said latch partially obturates the dispensing channel, and an unlocking state in which the latch is retracted from the dispensing channel, said latch being configured so that the position of an object present in the chamber is not affected by a change of state of the latch.