Pretty much all liquids count towards your daily water intake goals. This includes sparkling water, juice, milk, tea, coffee, smoothies, and even soda and diet soda. However, the best and most affordable option is always plain water. And it better for your body than other beverages according to this Harvard study.
A few notes about caffeine. For a long time, people believed that drinking caffeinated beverages like coffee and tea, actually counted against your daily water intake since they are diuretics. However, recent studies suggest that this might not actually be the case.
One other important note, food also contributes to your daily water goals. Some foods, like watermelon, is almost 100% water and therefore counts as well. Since this can be hard to track, just think of food as extra water you are having every day instead of trying to track it.