Live word-counting for NSTextView on OS X and UITextView on iOS.