Word Counter - Implemented using the Foundation Framework