@ukphil from what I know, each app on UT has to send the metrics to the lock screen. So, the lock screen doesn't collect message counts across devices.
i.e. When you press send on the device, it probably says to update the count somewhere in the Telegram-app code, rather than the data being pulled from the telegram server, which I'm not sure even counts your messages.