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 including at least two toothed wheels, the pitch of the teeth of at least two toothed wheels being the same, a first toothed wheel Di including 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 (z1−zj) between the differences, the first step being at least partially carried out by one of an optical system requiring the presence on each toothed wheel of at least one mark configured to allow to assign to each tooth of the wheel an order number with respect to the mark, and of a measurement system configured to measure the angular displacement of each of the at least two toothed wheels between the time ti and the time tf and a calculator configured to calculate 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;
- and
- a second step consisting in calculating, with the calculator, and when 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.