The invention relates to a device for counting shots (1) for a lightweight firearm (100). The device for counting shots includes a device (10) suitable to turn a part of the electrical signal connected to an acceleration applied to the firearm from an event. The device for counting shots also includes a processing unit (11) suitable to be fed by the electrical signal and suitable for analyzing the electrical signal itself.