"Count Your Blessings" is a hymn composed in 1897 by Johnson Oatman, Jr., with the tune being written by Edwin O. Excell. It is a standard part of many hymnals, and is well known in Christian circles.
References
Count Your Blessings (hymn) Wikipedia(Text) CC BY-SA