A method for counting events occurring between a time ti and a time tf corresponding to a duration T adapted to be implemented by a MEMS mechanical event counter comprising at least two toothed wheels, the pitch of the teeth of at least two toothed wheels being the same, a first toothed wheel Di comprising Zi teeth and a second toothed wheel Dj having Zj teeth with Zi being different from Zj and the greatest common divisor of Zi and Zj being different from Zi or Zj, the occurrence of an event causing the rotation of each of the at least two wheels by an angle corresponding, at the periphery of the at least two wheels, to a chord equal to the pitch of the teeth of the at least two wheels and the initial position of the at least two wheels with respect to an outer mark made on the at least two wheels, the method comprising:
- a first step consisting in one of counting, calculating, and estimating, either for each wheel, at the end of the duration T, the difference in the number of teeth zi, respectively zj, between its initial position at time ti and its final position at the end of the duration T, the difference being within the interval [0,Zi[, respectively [0,Zj[, or directly the difference (zi−zj) between the differences, the step being at least partially carried out by one of optical means requiring the presence on each toothed wheel of at least one mark adapted to allow to assign to each tooth of the wheel an order number with respect to the mark, and of means for measuring the angular displacement of each of the at least two toothed wheels between the time ti and the time tf and means for calculating zi and zj, respectively for each of the at least two wheels, from the measured value of the angular displacement of the at least two wheels between the times ti and tf and the number of teeth of the at least two wheels, respectively Zi and Zj,
- a second step consisting in calculating, with calculating means, and if zi is different from zj, the number of events which occurred N as a function of the difference between the values zi and zj and as a function of at least one of Zi and Zj.