I agree with this and there is no doubt how one can remain happy by recalling things they are grateful for in life.
Along with that, one must do self-assessment and accountability of how much are we putting our own efforts to make the surroundings positive. One of the ways to become happy is by not being selfish and contributing to the society as well to make others happy.
Whenever we do good, the good comes back on our way. :)