title: Bash: Count find result in folder
body: <p>Im trying to count how many files can 'find' the script and if its more than one, give one kind of error message and if its zero give another error msg.</p>
  
  <p>If I run </p>
  
  <pre><code>find procesoSitemap-*.jar -exec printf '.' \;| wc -c
  </code></pre>
  
  <p>It works and I can see the number of the search result, but how can I implement that into the script?</p>
  
  <pre><code>##!/bin/bash
  FINDPS="find procesoSitemap-*.jar -exec printf '.' \;| wc -c"
  
      if $FINDPS = 1
      then
              echo "There is ONE procesoSitemap jar file"
      else
              echo "There should be only ONE procesoSitemap jar file"
      fi
  </code></pre>
  
  <p>Thank you!</p>