An apparatus for counting and storing a number of rounds fired from a gun
includes a microcomputer; a non-volatile memory connected to the
microcomputer; and at least one piezoelectric transducer connected to the
microcomputer and mounted on the gun, the at least one piezoelectric
transducer comprising a power source that generates power during
operation of the gun. The piezoelectric transducer may also sense the
firing of the gun.