Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32h5/STM32H523/TIM5/TIM5_CNT#0x0
TIM5 counter
Least significant part of counter value
Value depends on IUFREMAP in TIMx_CR1.
https://github.com/modm-io/cmsis-svd-stm32