Simple Word Counter example written in Objective-C