title: How to write shell script that filter for lines and count them?
body: <p>I have a text file like this:</p>
  
  <pre><code>Apple
  Orange
  Orange
  Banana
  Banana
  Orange
  Banana
  Orange
  Apple
  Orange
  </code></pre>
  
  <p>I want to produce the following output after running a bash shell script:</p>
  
  <pre><code>Apple: 2
  Orange: 5
  Banana: 3
  </code></pre>
  
  <p>It's pretty standard stuff if I use a full blown language like Java/C++ etc but what is the quickest way to do it with a shell script/command line?</p>