title: Counting the occurrences of every duplicate words in a string using dictionary in c#
body: <p>Edit :I elaborated My Question More ..solutions are here for one fix duplicate word .. I was asked about every duplicate word</p>
  
  <p>I am a Newbie ...Might be not a Good question . ......<br/></p>
  
  <p>this is string </p>
  
  <pre><code>string str = "this this is is a a string"
  </code></pre>
  
  <p>in Interview ,i was asked to store the count of every duplicate keyword in generic Dictionary and then display them in Order <br/></p>
  
  <p>for example No of occurance of "is" keyword is 2</p>
  
  <p>similar Links <br/>:
  <a href="https://stackoverflow.com/questions/5069687/find-the-most-occurrence-of-a-character-in-string-c---">Find the most occurrence of a character in string C#?</a>  this is about finding character <br/></p>
  
  <p><a href="https://stackoverflow.com/questions/14087336/finding-occurrences-of-words-in-text-which-are-in-a-list-words---">Finding occurrences of words in text which are in a list words</a>  this is in python <br/></p>
  
  <p><a href="https://stackoverflow.com/questions/16843991/remove-occurrences-of-duplicate-words-in-a-string---">Remove occurrences of duplicate words in a string</a>  this in javaScript <br/></p>
  
  <p><a href="https://stackoverflow.com/questions/2901923/how-to-use-the-string-match-method-to-find-multiple-occurrences-of-the-same-word---">How to use the string.match method to find multiple occurrences of the same word in a string?</a>  Not relevant <br/></p>
  
  <p>..please Suggest</p>