title: Compare two files and display the count of duplicates occurences of a string
body: <p>I have two files: </p>
  
  <p><strong>main1.txt</strong></p>
  
  <pre><code>111
  222
  333
  </code></pre>
  
  <p><strong>infoFile.txt</strong></p>
  
  <pre><code>111
  111
  333
  444
  </code></pre>
  
  <p>I need to compare both files and display how many times each line in file <code>main1.txt</code> is repeated in <code>infoFile.txt</code>, as an example:</p>
  
  <pre><code>111:  Total 2
  222:  Total 0
  333:  Total 1
  </code></pre>
  
  <p>I've used <code>grep -f main1.txt infoFile.txt | sort |uniq -c</code> but it removes all the strings that are not available in foFile.txt, while I need it to display the count of these as 0.</p>