Begin minimd#WordCount function.