Hi Akshay!
In my opinion, for such a simple case, I’d rather use single LiveData to post Counter value and then process this to show on the UI.
However, it’s recommended, especially for more complex logic, to do as many data processing, such as converting this data to something that can be shown directly on UI, on the “non-UI” layer (such as ViewModel, in which you’ll probably store LiveDatas). This way you can test your data logic easily and your Activity or Fragment have to only show the data, they don’t need to handle converting or processing this data.
And maybe in your case you don’t need the `Counter` object, maybe you can just have `LiveData<Int>`?
I hope it helps you :)
Best!