Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/STMicroelectronics/STM32L4x1/TIM2/CNT#0x0
counter
Low counter value
High counter value (TIM2 only)
https://github.com/cmsis-svd/cmsis-svd-data