As I understand it, the process of showing gratitude forces you at a psychological level to get best prepared for whatever is coming next in your life. If you are going through a rough patch counting your blessings becomes a process of damage assessment. The thought makes you focus on what material, social, emotional, and spiritual resources you still have at your disposal to get reorganized to overcome your problems. Digging deep and doing a re-inventory of your blessings helps you recollect yourself and gears you with an upbeat spirit. The process may also make you realize how you have under-exploited some of the assets (such as time) in the past, and helps you re-calibrate for a better asset management in future.
Gratitude unlocks the fullness of life. It turns what we have into enough, and more. It turns denial into acceptance, chaos to order, confusion to clarity. It can turn a meal into a feast, a house into a home, a stranger into a friend.
Gratitude makes sense of our past, brings peace for today, and creates a vision for tomorrow.
Hope this helps!