Completed Problem 17: Count Characters