delete this website ---> https://deepbluembedded.com/stm32-counter-mode-example-frequency-counter-timer-in-counter-mode/