This is a pretty frequently asked question here, so I thought I'd post some code, see if anyone finds it. It generates counts for upper- and lower-case and uses functions to gather and print the data. This could have gone into the tutorials, but I figure I needed to finally create a blog post.